MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _read_secret_from

Function _read_secret_from

tests/test_cpp_preprocess.py:56–59  ·  view source on GitHub ↗

True if _cpp_preprocess leaked the sentinel secret into its output.

(source_file: Path)

Source from the content-addressed store, hash-verified

54
55
56def _read_secret_from(source_file: Path) -> bool:
57 """True if _cpp_preprocess leaked the sentinel secret into its output."""
58 out = extract._cpp_preprocess(source_file)
59 return b"TOP_SECRET_SENTINEL" in out
60
61
62@pytest.mark.skipif(shutil.which("cpp") is None, reason="cpp not available")

Calls

no outgoing calls

Tested by

no test coverage detected