Test the env-file-read spellings and log names that mutants survived

This commit is contained in:
2026-11-13 21:01:03 +01:00
parent 333ebe58b8
commit 7b59056c3d
3 changed files with 21 additions and 11 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ def breaches_of(call: Call, home: str, environ: typing.Mapping[str, str]) -> tup
if call.tool == "Read":
return "", text(call.given, "file_path"), read_breaches(call, home) + env_file_breaches(call, home)
if call.tool == "Grep":
return "", text(call.given, "path"), env_file_breaches(call, home)
# Only env-file-read checks a Grep, and it takes no override, so no marker or log line concerns the call.
return "", "", env_file_breaches(call, home)
path = text(call.given, "file_path")
if call.tool not in FILE_TOOLS or not path:
return None