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

Function td_project

src/discover/test_conventions.c:202–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static bool td_project(cbm_test_declarations_t *declarations, yyjson_val *root) {
203 bool valid = true;
204 yyjson_val *impact = td_field(root, "test_impact", &valid);
205 if (!valid || !impact)
206 return valid;
207 yyjson_val *version = td_field(impact, "version", &valid);
208 yyjson_val *tests = td_field(impact, "tests", &valid);
209 if (!valid || !yyjson_is_uint(version) || yyjson_get_uint(version) != 1)
210 return false;
211 declarations->configured = true;
212 if (!tests)
213 return true;
214 yyjson_val *conventions = td_field(tests, "conventions", &valid);
215 yyjson_val *presets = td_field(tests, "presets", &valid);
216 if (!valid)
217 return false;
218 return (!conventions || td_conventions(declarations, conventions)) &&
219 (!presets || td_presets(declarations, presets));
220}
221
222static void td_digest(cbm_test_declarations_t *declarations, const char *bytes, size_t len,
223 bool absent) {

Callers 1

Calls 3

td_fieldFunction · 0.85
td_conventionsFunction · 0.85
td_presetsFunction · 0.85

Tested by

no test coverage detected