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

Function cv2_string

src/mcp/test_impact_coverage.c:738–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738static char *cv2_string(cv2_context_t *ctx, cv2_span_t span) {
739 if (span.length == SIZE_MAX) {
740 cv2_fail(ctx, CBM_COVERAGE_PARSE_LIMIT);
741 return NULL;
742 }
743 char *text = cv2_array(ctx, span.length + 1, 1);
744 if (!text || !cv2_copy(ctx, text, span.data, span.length))
745 return NULL;
746 return text;
747}
748
749static bool cv2_line(cv2_context_t *ctx, cv2_span_t input, size_t *position, bool test_row,
750 cv2_span_t *line) {

Callers 2

cv2_test_nameFunction · 0.85
cv2_test_stateFunction · 0.85

Calls 3

cv2_failFunction · 0.85
cv2_arrayFunction · 0.85
cv2_copyFunction · 0.85

Tested by

no test coverage detected