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

Function pipeline_fixture_file_equals

tests/test_pipeline.c:18709–18720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18707}
18708
18709static bool pipeline_fixture_file_equals(const char *path, const char *expected) {
18710 FILE *f = cbm_fopen(path, "rb");
18711 if (!f) {
18712 return false;
18713 }
18714 size_t expected_len = strlen(expected);
18715 char actual[64];
18716 size_t n = fread(actual, 1, sizeof(actual), f);
18717 bool ok = n == expected_len && memcmp(actual, expected, expected_len) == 0 && fgetc(f) == EOF;
18718 (void)fclose(f);
18719 return ok;
18720}
18721
18722static void cancel_at_publish_boundary(cbm_pipeline_t *p, const char *staging_path, void *arg) {
18723 publish_cancel_ctx_t *ctx = (publish_cancel_ctx_t *)arg;

Callers 1

test_pipeline.cFile · 0.85

Calls 2

cbm_fopenFunction · 0.85
freadFunction · 0.85

Tested by

no test coverage detected