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

Function tc_role

tests/test_test_conventions.c:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static bool tc_role(const CBMFileResult *result, const char *name,
61 CBMTestDefinitionRole role) {
62 const CBMDefinition *def = tc_def(result, name);
63 char expected[512];
64 if (!def || !result->module_qn || def->test_role != role) return false;
65 int n = snprintf(expected, sizeof(expected), "%s.%s", result->module_qn, name);
66 return n > 0 && (size_t)n < sizeof(expected) && tc_text(def->qualified_name, expected);
67}
68
69static bool tc_none(const CBMFileResult *result) {
70 if (!tc_ok(result)) return false;

Callers 3

tc_only_caseFunction · 0.85
tc_owner_openFunction · 0.85

Calls 2

tc_defFunction · 0.85
tc_textFunction · 0.85

Tested by

no test coverage detected