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

Function is_test_file

src/mcp/mcp.c:2705–2712  ·  view source on GitHub ↗

Check if a file path looks like a test file. */

Source from the content-addressed store, hash-verified

2703
2704/* Check if a file path looks like a test file. */
2705static bool is_test_file(const char *path) {
2706 if (!path) {
2707 return false;
2708 }
2709 return strstr(path, "/test") != NULL || strstr(path, "test_") != NULL ||
2710 strstr(path, "_test.") != NULL || strstr(path, "/tests/") != NULL ||
2711 strstr(path, "/spec/") != NULL || strstr(path, ".test.") != NULL;
2712}
2713
2714/* Convert BFS traversal results into a yyjson_mut array. */
2715/* Find the CALLS-edge "args" JSON (the serialized arg expressions) on the edge

Callers 1

bfs_to_json_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected