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

Function pf_many_sources

tests/test_pipeline_frozen.c:971–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969 }
970}
971static bool pf_many_sources(pf_fixture_t *f) {
972 for (int i = 0; i < 65; ++i) {
973 char leaf[40], text[80];
974 int a = snprintf(leaf, sizeof(leaf), "many_%02d.c", i);
975 int b = snprintf(text, sizeof(text), "void many_%02d(void) {}\n", i);
976 if (a <= 0 || (size_t)a >= sizeof(leaf) || b <= 0 || (size_t)b >= sizeof(text) ||
977 !pf_source_write(f, leaf, text))
978 return false;
979 }
980 cbm_file_info_t *files = NULL;
981 int count = 0;
982 cbm_discover_opts_t opts = {.mode = CBM_MODE_FULL};
983 bool ok = cbm_discover(f->source, &opts, &files, &count) == 0 && count > 64;
984 cbm_discover_free(files, count);
985 return ok;
986}
987static bool pf_resource_limit(pf_fixture_t *f) {
988 cbm_git_context_t git = pf_git(f);
989 cbm_pipeline_frozen_inputs_t in = pf_inputs(f, "{}", &git, NULL);

Callers 1

Calls 3

pf_source_writeFunction · 0.85
cbm_discoverFunction · 0.85
cbm_discover_freeFunction · 0.85

Tested by

no test coverage detected