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

Function pt_finish

tests/test_test_impact_tree.c:729–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729static int pt_finish(pt_fixture *fx, int result) {
730 bool closed = pt_close_one(&fx->tree) && pt_close_one(&fx->second);
731 cbm_git_facts_free(fx->facts);
732 if (!closed) {
733 fprintf(stderr, "pinned-tree fixture retained for disposition: %s\n", fx->parent);
734 return 1;
735 }
736 if (fx->parent[0] && th_rmtree(fx->parent) != 0)
737 result = 1;
738 if (fx->home[0] && th_rmtree(fx->home) != 0)
739 result = 1;
740 cbm_arena_destroy(&fx->arena);
741 return result;
742}
743
744static size_t pt_total(const pt_fixture *fx) {
745 size_t total = 0;

Callers 3

pt_pinned_roundFunction · 0.85
ptr_bytes_widthFunction · 0.85

Calls 4

pt_close_oneFunction · 0.85
cbm_git_facts_freeFunction · 0.85
th_rmtreeFunction · 0.85
cbm_arena_destroyFunction · 0.50

Tested by

no test coverage detected