arti config exhaust checking: Improve message, add comment
I had a failure that was confusing to me, and I wrote it...
This commit is contained in:
parent
82ad9eea5f
commit
7393ea6dd4
|
@ -643,9 +643,11 @@ mod test {
|
||||||
.map(|(path, m)| format!(" config key {:?}: {}", path, m))
|
.map(|(path, m)| format!(" config key {:?}: {}", path, m))
|
||||||
.collect_vec();
|
.collect_vec();
|
||||||
|
|
||||||
|
// If this assert fails, it might be because in `fn exhaustive`, below,
|
||||||
|
// a newly-defined config item has not been added to the list for OLDEST_SUPPORTED_CONFIG.
|
||||||
assert! { problems.is_empty(),
|
assert! { problems.is_empty(),
|
||||||
"example config exhaustiveness check failed for {:?}:\n{}\n",
|
"example config exhaustiveness check failed: {}\n-----8<-----\n{}\n-----8<-----\n",
|
||||||
example_file, problems.join("\n")}
|
problems.join("\n"), example_file}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue