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

Function make_fixture

tests/windows/test_non_ascii_path.py:316–326  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

314
315
316def make_fixture(root):
317 src = os.path.join(root, "src")
318 os.makedirs(src, exist_ok=True)
319 for name, text in (("math.ts", MATH_TS), ("main.ts", MAIN_TS)):
320 with open(os.path.join(src, name), "wb") as f:
321 f.write(text.encode("utf-8")) # exact bytes, identical across copies
322 for rel, text in GO_FILES:
323 path = os.path.join(root, rel.replace("/", os.sep))
324 os.makedirs(os.path.dirname(path) or root, exist_ok=True)
325 with open(path, "wb") as f:
326 f.write(text.encode("utf-8"))
327
328
329def no_project_error(index_txt, repo, cache):

Callers 1

mainFunction · 0.70

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected