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

Function tm_cmp_case_key

src/mcp/test_impact.c:1366–1371  ·  view source on GitHub ↗

(file, name): the key a registration resolves by. */

Source from the content-addressed store, hash-verified

1364
1365/* (file, name): the key a registration resolves by. */
1366static int tm_cmp_case_key(const void *left, const void *right) {
1367 const cbm_test_case_t *const *a = left;
1368 const cbm_test_case_t *const *b = right;
1369 int by_file = tm_cmp_text((*a)->file, (*b)->file);
1370 return by_file != 0 ? by_file : tm_cmp_text((*a)->name, (*b)->name);
1371}
1372
1373static bool tm_link_registrations(cbm_test_model_t *m) {
1374 if (m->reg_count == 0 || m->case_count == 0) {

Callers

nothing calls this directly

Calls 1

tm_cmp_textFunction · 0.85

Tested by

no test coverage detected