feat(go): enrich snapshots with package ownership

This commit is contained in:
Luna 2026-07-22 03:50:55 -07:00
parent 6355fb403d
commit 88d7a6e3b8
No known key found for this signature in database
8 changed files with 149 additions and 54 deletions

View file

@ -46,6 +46,10 @@ func TestRunAttachesLiveBaselineLifecycle(t *testing.T) {
cfg := config.Default()
cfg.LogDir = t.TempDir()
cfg.BaselineGrace = 0
// This fixture exercises listener-baseline lifecycle only. Avoid inheriting
// the host's live persistence paths (for example /etc/passwd), whose mtime
// would otherwise add an unrelated environment-dependent alert.
cfg.Detectors["persistence"] = false
calls := 0
capture := func() (model.State, error) {
calls++