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

Function settings_revision

tests/test_runtime_settings.c:446–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446static long long settings_revision(const char *cache) {
447 yyjson_doc *snapshot = read_snapshot(cache);
448 const char *text =
449 snapshot ? yyjson_get_str(yyjson_obj_get(yyjson_doc_get_root(snapshot), "revision")) : NULL;
450 long long revision = text ? strtoll(text, NULL, 10) : -1;
451 yyjson_doc_free(snapshot);
452 return revision;
453}
454
455/* A test that fails between init and fixture_close leaves the settings bound
456 * to its own cache; the lock tests reset first so each one fails on its own

Callers 1

Calls 1

read_snapshotFunction · 0.85

Tested by

no test coverage detected