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

Function tc_config

tests/test_test_conventions.c:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static cbm_test_declarations_t *tc_config(const char *records, const char *presets) {
25 char json[8192];
26 int n = snprintf(json, sizeof(json),
27 "{\"test_impact\":{\"version\":1,\"tests\":{\"conventions\":[%s],\"presets\":{%s}}}}",
28 records ? records : "", presets ? presets : "");
29 return n > 0 && (size_t)n < sizeof(json) ?
30 cbm_test_declarations_parse(json, (size_t)n, false) : NULL;
31}
32
33static CBMFileResult *tc_extract(const char *source, CBMLanguage language, const char *path,
34 const cbm_test_declarations_t *config) {

Callers 2

tc_owner_openFunction · 0.85

Calls 1

Tested by

no test coverage detected