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

Function diagnostics_file_equals

tests/test_diagnostics.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44#ifndef _WIN32
45static bool diagnostics_file_equals(const char *path, const char *expected) {
46 char contents[128] = "";
47 FILE *file = cbm_fopen(path, "rb");
48 if (!file) {
49 return false;
50 }
51 size_t length = fread(contents, 1, sizeof(contents) - 1, file);
52 bool closed = fclose(file) == 0;
53 contents[length] = '\0';
54 return closed && strcmp(contents, expected) == 0;
55}
56#endif
57
58static bool diagnostics_capture_paths(diagnostics_paths_t *paths) {

Callers 1

test_diagnostics.cFile · 0.85

Calls 1

cbm_fopenFunction · 0.85

Tested by

no test coverage detected