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

Function tf_coverage_finish

tests/test_main.c:1363–1377  ·  view source on GitHub ↗

Check the current parent interval before choosing the runner status. Keep * counters and routing intact: the automatic exit writer still follows, and * this checked prefix does not certify its outcome or later callbacks. */

Source from the content-addressed store, hash-verified

1361 * counters and routing intact: the automatic exit writer still follows, and
1362 * this checked prefix does not certify its outcome or later callbacks. */
1363static void tf_coverage_finish(void) {
1364 if (!tf_coverage_dir[0] || tf_coverage_write_failed) {
1365 return;
1366 }
1367#ifndef _WIN32
1368 if (getpid() != tf_coverage_channel.owner || tf_coverage_channel_blocked()) {
1369 return;
1370 }
1371#endif
1372 if (__llvm_profile_write_file() != 0) {
1373 tf_coverage_write_failed = true;
1374 fprintf(stderr, "coverage profile write failed: %s\n", tf_coverage_profile);
1375 tf_fail_count++;
1376 }
1377}
1378
1379static bool tf_coverage_suite_dir(char *out, size_t cap) {
1380 int length = snprintf(out, cap, "%s/%s", tf_coverage_dir,

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected