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

Function ci_legacy

tests/test_test_impact_changes.c:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 return true;
38}
39static bool ci_legacy(const unsigned char *patch,size_t len,bool complete,int want_count) {
40 cbm_diff_t *d=cbm_diff_parse((const char *)patch,len); int count=-1;
41 if (!d) return false;
42 const cbm_diff_file_t *files=cbm_diff_files(d,&count);
43 bool ok=d && cbm_diff_complete(d)==complete && (want_count<0 || count==want_count) && (!count || files);
44 cbm_diff_free(d); return ok;
45}
46static bool ci_mixed_result(const cbm_changes_t *c) {
47 size_t count=0; const cbm_change_file_t *rows=cbm_changes_files(c,&count);
48 if (!c || count!=3 || !rows || cbm_changes_state(c)!=CBM_CHANGES_NONEMPTY ||

Callers 1

Calls 4

cbm_diff_parseFunction · 0.85
cbm_diff_filesFunction · 0.85
cbm_diff_completeFunction · 0.85
cbm_diff_freeFunction · 0.85

Tested by

no test coverage detected