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

Function tis_same

tests/test_test_impact_source.c:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106};
107
108static bool tis_same(const char *line, bool matched, cbm_ti_span_t span, const char *expected) {
109 if (!*expected) {
110 return !matched;
111 }
112 return matched && span.len == strlen(expected) &&
113 memcmp(line + span.start, expected, span.len) == 0;
114}
115
116/* Every pattern gives on every line what the reference expression gives. */
117TEST(test_impact_source_line_patterns_match_the_reference) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected