Documentation
¶
Overview ¶
Package ownership is a test helper for AD-2 field ownership: each Finding field is set only by its owning stage. Stage tests run a stage on a fully populated Finding and assert every field the stage does not own is unchanged.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Detect = []string{"ID", "Provider", "Detector", "AlsoMatchedBy", "Confidence", "Redacted", "CredentialParts", "Locations"} Suppress = []string{"Suppressed", "SuppressionReason"} Verify = []string{"Status", "StatusReason", "Verified", "VerifyEvidence"} Enrich = []string{"Tier", "Scopes", "Org", "FirstSeen", "AgeDays", "DollarsAtRiskPerDay", "PotentialDollarsAtRiskPerDay", "DollarsMethod"} FixPlan = []string{"FixPlan"} // Baseline is set by the suppress stage's baseline comparison (Suppressor.Compare), // which runs after the merge on the final id. Suppress owns both sets. Baseline = []string{"NewVsBaseline"} )
Fields owned by each stage (AD-2).
Functions ¶
Types ¶
This section is empty.