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

Function cv2_string_compare

src/mcp/test_impact_coverage.c:1088–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088static bool cv2_string_compare(cv2_context_t *ctx, const char *a, const char *b, int *out) {
1089 size_t i = 0;
1090 for (;;) {
1091 if (!cv2_step(ctx))
1092 return false;
1093 unsigned char left = (unsigned char)a[i];
1094 unsigned char right = (unsigned char)b[i];
1095 if (left != right || !left) {
1096 *out = (left > right) - (left < right);
1097 return true;
1098 }
1099 i++;
1100 }
1101}
1102
1103static bool cv2_test_compare(cv2_context_t *ctx, const cbm_coverage_test_t *a,
1104 const cbm_coverage_test_t *b, int *out) {

Callers 2

cv2_test_compareFunction · 0.85
cv2_validate_testsFunction · 0.85

Calls 1

cv2_stepFunction · 0.85

Tested by

no test coverage detected