True if _cpp_preprocess leaked the sentinel secret into its output.
(source_file: Path)
| 54 | |
| 55 | |
| 56 | def _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") |
no outgoing calls
no test coverage detected