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

Function scan_expect

tests/test_mcp.c:24654–24657  ·  view source on GitHub ↗

Append one expected record to `buf`. */

Source from the content-addressed store, hash-verified

24652
24653/* Append one expected record to `buf`. */
24654static void scan_expect(char *buf, size_t cap, const char *path, int line, const char *content) {
24655 size_t used = strlen(buf);
24656 snprintf(buf + used, cap - used, "%s" SCAN_FS "%d" SCAN_FS "%s\n", path, line, content);
24657}
24658
24659TEST(search_code_scan_in_process_writes_grep_records) {
24660 scan_fixture_t fx;

Callers 1

test_mcp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected