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

Function pv2_failure

tests/test_test_impact_profiles.c:130–140  ·  view source on GitHub ↗

A real live guard, never an invented pointer, verifies clearing and isolation. */

Source from the content-addressed store, hash-verified

128
129/* A real live guard, never an invented pointer, verifies clearing and isolation. */
130static bool pv2_failure(const void *p, size_t n, const char *t, size_t m,
131 const cbm_coverage_parse_limits_t *limits,
132 cbm_coverage_parse_status_t expected, cbm_coverage_map_t *guard) {
133 cbm_coverage_map_t *out = guard;
134 cbm_coverage_parse_status_t status =
135 cbm_coverage_map_parse_v2(p, n, t, m, limits, NULL, NULL, &out);
136 bool ok = status == expected && out == NULL;
137 if (out != guard)
138 cbm_coverage_map_free(out);
139 return ok;
140}
141
142static bool pv2_golden_shape(const cbm_coverage_map_t *map) {
143 static const unsigned char name[] = {'a', 0, 'b'};

Callers 1

Calls 2

cbm_coverage_map_freeFunction · 0.85

Tested by

no test coverage detected