You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a8c869c
Browse filesBrowse the repository at this point in the historyBrowse files
Small refactors: state keys, live mode, status type, atomic writes (#331)
Four of the five items in #331, with no change in behaviour:
- scan.Stats has explicit JSON tags spelling today's names, so renaming
a field cannot silently change the -resume state; a test pins every
key path of the state file.
- Config.live() replaces the seven "neither simulated nor stubbed"
checks; the two that test only Simulate say why.
- report.Status names the target statuses, with Label and Value for the
two renderings of "not run", replacing string literals in six places.
- output.WriteFile does the temp-file-and-rename write once, for the
names, summary, SARIF and resume-state files.
The Options/Config duplication is left for its own change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #331
Scan-engine tests in `internal/scan` can avoid DNS entirely by setting the unexported `resolveHook` field of `scan.Config`, or by running with `Simulate` set; see `runner_test.go`.
260
+
Scan-engine tests in `internal/scan` can avoid DNS entirely by setting the unexported `resolveHook` field of `scan.Config`, or by running with `Simulate` set; see `runner_test.go`. The hook replaces candidate lookups only: wildcard probes still go to `Resolver`, so a hooked test also sets `Simulate` or points the resolver at a local server (`Config.live` reports whether a scan sends real lookups).
0 commit comments