Versions in this module Expand all Collapse all v1 v1.5.0 Jun 2, 2026 v1.4.1 May 30, 2026 v1.4.0 May 29, 2026 Changes in this version + type CategoryRecall struct + Category string + Caught int + Total int + type ExpectedFinding struct + Category string + File string + ID string + Line int + LineTol int + MinSeverity render.Severity + Summary string + type Fixture struct + Diff string + Dir string + Expected []ExpectedFinding + HeldOut bool + Language string + MockResponse string + MustStaySilentOn []SilenceAnchor + Name string + func LoadCorpus(root string) ([]Fixture, error) + func LoadFixture(dir string) (Fixture, error) + func (fx Fixture) Categories() []string + type FixtureScore struct + CaughtByCategory map[string]int + FalseNegatives int + FalsePositives int + Fixture string + HeldOut bool + MissedByCategory map[string]int + SilenceAnchors int + SilenceViolations int + TruePositives int + func RunFixture(ctx context.Context, p provider.Provider, fx Fixture, model string) (FixtureScore, error) + func Score(produced []render.Finding, fx Fixture) FixtureScore + func (s FixtureScore) FalsePositiveRate() float64 + func (s FixtureScore) Precision() float64 + func (s FixtureScore) Recall() float64 + type Scorecard struct + Fixtures []FixtureScore + Model string + Provider string + func RunCorpus(ctx context.Context, p provider.Provider, model string, fixtures []Fixture) (Scorecard, error) + func (sc Scorecard) CategoryRecall() []CategoryRecall + func (sc Scorecard) Dev() Scorecard + func (sc Scorecard) FalsePositiveRate() float64 + func (sc Scorecard) HeldOut() Scorecard + func (sc Scorecard) Precision() float64 + func (sc Scorecard) Recall() float64 + type SilenceAnchor struct + File string + Line int + Reason string