]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/has_examples.c
ccanlint: rename structures to match keys
[ccan] / tools / ccanlint / tests / has_examples.c
index 1e4f65c3396cd825b5a619d2608b6b5bd6ce05d9..947d76a4a768751053e6830b4bb788cb2c56df77 100644 (file)
@@ -109,10 +109,11 @@ static void extract_examples(struct manifest *m,
        score->pass = score->score != 0;
 }
 
-struct ccanlint has_examples = {
+struct ccanlint examples_exist = {
        .key = "examples_exist",
        .name = "_info and main header file have Example: sections",
        .check = extract_examples,
+       .needs = "info_exists"
 };
 
-REGISTER_TEST(has_examples, &has_info, NULL);
+REGISTER_TEST(examples_exist);