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

Function cv2_test_state

src/mcp/test_impact_coverage.c:1032–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032static bool cv2_test_state(cv2_context_t *ctx, cv2_span_t fields[4], cbm_coverage_test_t *row) {
1033 bool complete = cv2_literal(fields[1], "complete", 8);
1034 bool incomplete = cv2_literal(fields[1], "incomplete", 10);
1035 if ((!complete && !incomplete) || (complete && fields[2].length) ||
1036 (incomplete && !fields[2].length))
1037 return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT);
1038 row->complete = complete;
1039 row->reason = cv2_string(ctx, fields[2]);
1040 return row->reason != NULL;
1041}
1042
1043static bool cv2_test_ids(cv2_context_t *ctx, cv2_span_t span, cbm_coverage_test_t *row) {
1044 int count;

Callers 1

cv2_testsFunction · 0.85

Calls 3

cv2_literalFunction · 0.85
cv2_failFunction · 0.85
cv2_stringFunction · 0.85

Tested by

no test coverage detected