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

Function cv2_tests

src/mcp/test_impact_coverage.c:1073–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071}
1072
1073static bool cv2_tests(cv2_context_t *ctx, cv2_span_t tests) {
1074 size_t position = 0;
1075 for (int i = 0; i < ctx->test_count; i++) {
1076 cv2_span_t fields[4];
1077 cbm_coverage_test_t *row = &ctx->map->tests[i];
1078 if (!cv2_step(ctx) || !cv2_row(ctx, tests, &position, true, fields) ||
1079 !cv2_test_name(ctx, fields[0], row) || !cv2_test_state(ctx, fields, row) ||
1080 !cv2_test_ids(ctx, fields[3], row))
1081 return false;
1082 }
1083 if (position != tests.length)
1084 return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT);
1085 return true;
1086}
1087
1088static bool cv2_string_compare(cv2_context_t *ctx, const char *a, const char *b, int *out) {
1089 size_t i = 0;

Callers 1

Calls 6

cv2_stepFunction · 0.85
cv2_rowFunction · 0.85
cv2_test_nameFunction · 0.85
cv2_test_stateFunction · 0.85
cv2_test_idsFunction · 0.85
cv2_failFunction · 0.85

Tested by

no test coverage detected