test-web: Report which file has missing match/mismatch metadata

This makes it easier to figure out what's causing the assertion failure.
This commit is contained in:
Sam Atkins 2025-11-18 12:20:38 +00:00 committed by Jelle Raaijmakers
parent 0e8f3a4648
commit eea1d4e1d2
Notes: github-actions[bot] 2025-11-20 15:04:01 +00:00

View file

@ -438,7 +438,10 @@ static void run_ref_test(TestWebView& view, Test& test, URL::URL const& url, int
auto match_references = metadata_object.get_array("match_references"sv);
auto mismatch_references = metadata_object.get_array("mismatch_references"sv);
VERIFY(!match_references->is_empty() || !mismatch_references->is_empty());
if (match_references->is_empty() && mismatch_references->is_empty()) {
dbgln("No match or mismatch references in `{}`! Metadata: {}", view.url(), metadata_object.serialized());
VERIFY_NOT_REACHED();
}
// Read fuzzy configurations.
test.fuzzy_matches.clear_with_capacity();