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

Function pf_snapshot_view

tests/test_pipeline_frozen.c:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 return ok && retained && removed && pf_directory_only(f->destination, NULL);
319}
320static bool pf_snapshot_view(const cbm_userconfig_t *config, cbm_userconfig_source_state_t state,
321 const char *expected, size_t len) {
322 const char *bytes = "guard";
323 size_t length = 123;
324 cbm_userconfig_source_state_t got = cbm_userconfig_project_source(config, &bytes, &length);
325 if (got != state || length != len)
326 return false;
327 return state == CBM_USERCONFIG_SOURCE_PRESENT ? bytes && !memcmp(bytes, expected, len)
328 : bytes == NULL;
329}
330static bool pf_config_failure(cbm_userconfig_t *guard, cbm_userconfig_source_state_t state,
331 const void *bytes, size_t len,
332 cbm_userconfig_snapshot_status_t expected) {

Callers 3

pf_config_boundaryFunction · 0.85

Calls 1

Tested by

no test coverage detected