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

Function test_file_contains_all

tests/test_cli.c:447–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447static bool test_file_contains_all(const char *path, const char *const *tokens,
448 size_t token_count) {
449 char *data = read_test_file_alloc(path);
450 if (!data) {
451 return false;
452 }
453 bool found = true;
454 for (size_t i = 0; i < token_count; i++) {
455 if (!strstr(data, tokens[i])) {
456 found = false;
457 break;
458 }
459 }
460 free(data);
461 return found;
462}
463
464static bool test_json_string_array_contains(yyjson_val *root, const char *key,
465 const char *expected) {

Callers 1

test_cli.cFile · 0.85

Calls 1

read_test_file_allocFunction · 0.85

Tested by

no test coverage detected