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

Function tis_build

tests/test_test_impact_source.c:196–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static cbm_ti_source_t *tis_build(const char *const *files, int count) {
197 cbm_ti_source_t *s = cbm_ti_source_new();
198 if (!s) {
199 return NULL;
200 }
201 for (int i = 0; i < count; i += 2) {
202 if (!cbm_ti_source_add(s, files[i], files[i + 1], strlen(files[i + 1]))) {
203 cbm_ti_source_free(s);
204 return NULL;
205 }
206 }
207 if (!cbm_ti_source_finish(s)) {
208 cbm_ti_source_free(s);
209 return NULL;
210 }
211 return s;
212}
213
214static bool tis_has(const char *const *list, int count, const char *word) {
215 for (int i = 0; i < count; i++) {

Callers 1

Calls 4

cbm_ti_source_newFunction · 0.85
cbm_ti_source_addFunction · 0.85
cbm_ti_source_freeFunction · 0.85
cbm_ti_source_finishFunction · 0.85

Tested by

no test coverage detected