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

Function profile_wire

tests/coverage_live_v2_support.py:203–213  ·  view source on GitHub ↗
(data, image, universe)

Source from the content-addressed store, hash-verified

201
202
203def profile_wire(data, image, universe):
204 expected = [b"CBM_PROFILE_MAP\t2\t" + image.encode() + b"\t" + str(len(universe)).encode()]
205 ids = {}
206 for number, key in enumerate(sorted(universe)):
207 name, hash_value = key
208 ids[key] = number
209 expected.append(b"%d\t%s\t%016x\t%d" %
210 (number, name.hex().encode(), hash_value, len(universe[key])))
211 require(data == b"\n".join(expected) + b"\n",
212 "profiles.tsv differs from full native identities/shapes, including zero records")
213 return ids
214
215
216def test_rows(data):

Callers 1

bundleFunction · 0.90

Calls 3

strFunction · 0.85
hexMethod · 0.80
requireFunction · 0.70

Tested by

no test coverage detected