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

Function policy_matches

tests/test_test_impact.c:2403–2408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403static bool policy_matches(const cbm_test_policy_t *policy, const char *path, const char *id) {
2404 const cbm_test_rule_t *rule = NULL;
2405 if (!cbm_test_policy_match_path(policy, path, &rule))
2406 return false;
2407 return id ? rule && strcmp(rule->id, id) == 0 : rule == NULL;
2408}
2409
2410TEST(test_policy_retains_exact_snapshot_and_owns_result) {
2411 char dir[512], path[600];

Callers 1

test_test_impact.cFile · 0.85

Calls 1

Tested by

no test coverage detected