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

Function cv2_test_name

src/mcp/test_impact_coverage.c:1018–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016}
1017
1018static bool cv2_test_name(cv2_context_t *ctx, cv2_span_t field, cbm_coverage_test_t *row) {
1019 size_t colon = 0;
1020 while (colon < field.length && field.data[colon] != ':') {
1021 if (!cv2_step(ctx))
1022 return false;
1023 colon++;
1024 }
1025 if (!colon || colon == field.length || colon + 1 == field.length)
1026 return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT);
1027 row->suite = cv2_string(ctx, (cv2_span_t){field.data, colon});
1028 row->name = cv2_string(ctx, (cv2_span_t){field.data + colon + 1, field.length - colon - 1});
1029 return row->suite && row->name;
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);

Callers 1

cv2_testsFunction · 0.85

Calls 3

cv2_stepFunction · 0.85
cv2_failFunction · 0.85
cv2_stringFunction · 0.85

Tested by

no test coverage detected