- analyze_coverage(m, res, cmdout);
- return res;
-}
-
-/* 1 point for 50%, 2 points for 75%, 3 points for 87.5%... */
-static unsigned int score_coverage(struct manifest *m, void *check_result)
-{
- struct coverage_result *res = check_result;
- float thresh;
- unsigned int i;
-
- for (i = 0, thresh = 0.5;
- i < run_coverage_tests.total_score;
- i++, thresh /= 2) {
- if (res->uncovered > thresh)
- break;
- }
- return i;
-}
-
-static const char *describe_run_coverage_tests(struct manifest *m,
- void *check_result)
-{
- struct coverage_result *res = check_result;
-
- if (res->what)
- return talloc_asprintf(m, "%s: %s", res->what, res->output);
-
- return talloc_asprintf(m, "Tests achieved %0.2f%% coverage",
- (1.0 - res->uncovered) * 100);
+ analyze_coverage(m, full_gcov, cmdout, score);