MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / tf_coverage_flush

Function tf_coverage_flush

tests/test_main.c:1349–1358  ·  view source on GitHub ↗

Writes the current interval and resets counters only after a successful write. */

Source from the content-addressed store, hash-verified

1347
1348/* Writes the current interval and resets counters only after a successful write. */
1349static bool tf_coverage_flush(void) {
1350 if (__llvm_profile_write_file() != 0) {
1351 tf_coverage_write_failed = true;
1352 fprintf(stderr, "coverage profile write failed: %s\n", tf_coverage_profile);
1353 tf_fail_count++;
1354 return false;
1355 }
1356 __llvm_profile_reset_counters();
1357 return true;
1358}
1359
1360/* Check the current parent interval before choosing the runner status. Keep
1361 * counters and routing intact: the automatic exit writer still follows, and

Callers 2

tf_coverage_test_beginFunction · 0.85
tf_coverage_test_endFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected