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

Function kept_text

tests/test_parse_coverage.c:1377–1385  ·  view source on GitHub ↗

The text the parser sees: every kept range, concatenated. */

Source from the content-addressed store, hash-verified

1375
1376/* The text the parser sees: every kept range, concatenated. */
1377static char *kept_text(const char *src, const CBMSqlKeptRanges *k) {
1378 cov_buf_t b = {NULL, 0, 0};
1379 cov_put(&b, "%s", "");
1380 for (uint32_t i = 0; i < k->count; i++) {
1381 cov_put(&b, "%.*s", (int)(k->items[i].end_byte - k->items[i].start_byte),
1382 src + k->items[i].start_byte);
1383 }
1384 return b.s;
1385}
1386
1387TEST(sql_values_scanner_excludes_only_literal_rows_issue1735) {
1388 /* {source, what the parser sees} — NULL means nothing is excluded. */

Callers 1

Calls 1

cov_putFunction · 0.85

Tested by

no test coverage detected