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

Function budget_fixture

tests/test_profile_map_v2.py:457–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455
456
457def budget_fixture():
458 f = simple_fixture()
459 setup = text(((b"a", 1, (1,)), (b"b", 2, (0, 0))))
460 parent = text(((b"a", 1, (1,)), (b"b", 2, (0, 1))))
461 f["observations"] = (replace(f["observations"][0], text=setup),
462 replace(f["observations"][1], text=parent))
463 expected = b"s:*\tcomplete\t\t0\ns:t\tcomplete\t\t0 1\n"
464 # B = expected (1+1) + two observation routes (1+1+1)*2 +
465 # two evidence routes (1+1)*2 = 12. Three two-record streams contribute
466 # six names of one byte and nine counter values. Emitted ID refs = 1+2.
467 exact = M.ProfileMapLimits(32 + len(f["enumeration_text"]) + len(setup) + len(parent) + 12,
468 2, 2, 2, 6, 9, 18, 3, len(SIMPLE_PROFILES) + len(expected))
469 return f, expected, exact
470
471
472def sampled_positions(calls):

Calls 3

simple_fixtureFunction · 0.85
replaceFunction · 0.85
textFunction · 0.70

Tested by

no test coverage detected