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

Function gfb_good

tests/test_test_impact_git.c:1875–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873}
1874
1875static bool gfb_good(gfb_fixture_t *f, cbm_git_facts_t *facts, cbm_git_revision_t rev,
1876 const size_t *indices, size_t count, const cbm_git_blob_batch_limits_t *limits,
1877 cbm_git_blob_batch_t *keep) {
1878 cbm_git_blob_batch_request_t request={rev,indices,count};
1879 cbm_git_blob_batch_t out=gfb_poisoned(); cbm_git_facts_error_t error;
1880 memset(&error,0xa5,sizeof(error));
1881 bool read=cbm_git_facts_read_blob_batch(facts,&request,limits,&out,&error);
1882 if (!read || !gfa_clean_error(&error))
1883 gfb_report(read ? "blob batch (unclean error)" : "blob batch", &error);
1884 bool ok=read && gfa_clean_error(&error) && gfb_matches(f,rev,indices,count,&out);
1885 if (keep) *keep=out;
1886 return ok;
1887}
1888
1889static bool gfb_error(cbm_git_facts_t *facts, const cbm_git_blob_batch_request_t *request,
1890 const cbm_git_blob_batch_limits_t *limits, cbm_git_facts_status_t expected) {

Callers 1

Calls 5

gfb_poisonedFunction · 0.85
gfa_clean_errorFunction · 0.85
gfb_reportFunction · 0.85
gfb_matchesFunction · 0.85

Tested by

no test coverage detected