| 18707 | } |
| 18708 | |
| 18709 | static 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 | |
| 18722 | static 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; |
no test coverage detected