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

Function read

tests/coverage_live_v2_native.py:18–24  ·  view source on GitHub ↗
(path, maximum=64 * 1024 * 1024)

Source from the content-addressed store, hash-verified

16
17
18def read(path, maximum=64 * 1024 * 1024):
19 path = Path(path)
20 require(not path.is_symlink() and path.is_file(), "missing/unsafe evidence file: " + str(path))
21 with path.open("rb") as stream:
22 data = stream.read(maximum + 1)
23 require(len(data) <= maximum, "evidence file exceeds test bound")
24 return data
25
26
27def json_read(path):

Callers 15

mainFunction · 0.90
test_cli.cFile · 0.70
cli_scope_wait_readyFunction · 0.70
frontend_test_read_byteFunction · 0.70
json_readFunction · 0.70
convertFunction · 0.70
dependency_controlsFunction · 0.70
bundleFunction · 0.70
native_logFunction · 0.70
transferFunction · 0.70

Calls 4

requireFunction · 0.90
strFunction · 0.85
openMethod · 0.80
readMethod · 0.45

Tested by 14

mainFunction · 0.72
cli_scope_wait_readyFunction · 0.56
frontend_test_read_byteFunction · 0.56
transferFunction · 0.56
lock_registry_pipe_readFunction · 0.56
sp_stdin_probeFunction · 0.56
ipc_test_fd_read_allFunction · 0.56