forked from EduCraft/curriculum-project-hub
chore: restore checker CI gate
This commit is contained in:
@@ -737,7 +737,11 @@ fn parse_target(name: String, value: toml::Value, diags: &mut Vec<Diagnostic>) -
|
||||
/// A well-formed but empty `covers = []` yields `Some(vec![])`: a target that
|
||||
/// explicitly renders no kind (every used kind then draws a `renderIgnored`
|
||||
/// warning) — distinct from an absent key.
|
||||
fn parse_covers(name: &str, value: toml::Value, diags: &mut Vec<Diagnostic>) -> Option<Vec<String>> {
|
||||
fn parse_covers(
|
||||
name: &str,
|
||||
value: toml::Value,
|
||||
diags: &mut Vec<Diagnostic>,
|
||||
) -> Option<Vec<String>> {
|
||||
let items = match value {
|
||||
toml::Value::Array(items) => items,
|
||||
_ => {
|
||||
|
||||
@@ -324,7 +324,11 @@ fn cph_version_mismatch_is_an_error_diagnostic() {
|
||||
.iter()
|
||||
.filter(|d| d.code == DiagCode::CphVersionMismatch)
|
||||
.collect();
|
||||
assert_eq!(mm.len(), 1, "expected one CphVersionMismatch, got {diags:?}");
|
||||
assert_eq!(
|
||||
mm.len(),
|
||||
1,
|
||||
"expected one CphVersionMismatch, got {diags:?}"
|
||||
);
|
||||
assert!(
|
||||
mm[0].message.contains("99.99.99") && mm[0].message.contains(CPH_VERSION),
|
||||
"diagnostic should name both versions, got: {}",
|
||||
|
||||
Reference in New Issue
Block a user