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

Function diagnostics_file_equals

tests/test_diagnostics.c:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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