]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - tools/ccanlint/tests/run-coverage.c
ccanlint: rename structures to match keys
[ccan-lca-2011.git] / tools / ccanlint / tests / run-coverage.c
index 7f2b3c24a0f7766d49d322d892ce3d83723c0a8e..af8d6f21c845948fbbae3cd1413cbfc6ac8e2938 100644 (file)
@@ -162,10 +162,11 @@ static void do_run_coverage_tests(struct manifest *m,
        analyze_coverage(m, full_gcov, cmdout, score);
 }
 
-struct ccanlint run_coverage_tests = {
-       .key = "test-coverage",
-       .name = "Code coverage of module tests",
+struct ccanlint tests_coverage = {
+       .key = "tests_coverage",
+       .name = "Module's tests cover all the code",
        .check = do_run_coverage_tests,
+       .needs = "tests_compile_coverage tests_pass"
 };
 
-REGISTER_TEST(run_coverage_tests, &compile_coverage_tests, &run_tests, NULL);
+REGISTER_TEST(tests_coverage);