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

Function fresh_output

tests/test_coverage_live_v2.py:82–93  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

80
81
82def fresh_output(value):
83 requested = Path(value).absolute()
84 if os.path.lexists(requested):
85 raise Infrastructure("test output already exists; preserving caller data")
86 parent = requested.parent.resolve(strict=True)
87 if not parent.is_dir():
88 raise Infrastructure("test output parent is not a directory")
89 result = parent / requested.name
90 if any(character in str(result) for character in ("\n", "\r", "%")):
91 raise Infrastructure("unsupported LLVM evidence path characters")
92 result.mkdir(mode=0o700)
93 return result
94
95
96def main():

Callers 1

mainFunction · 0.85

Calls 2

InfrastructureClass · 0.90
strFunction · 0.85

Tested by

no test coverage detected