Versions in this module Expand all Collapse all v0 v0.2.0 Aug 30, 2026 Changes in this version type Config + SkipExamples bool v0.1.0 Jul 23, 2026 Changes in this version + const DefaultWhiteBoxJustificationPrefix + const RuleNoGoto + const RuleNoIf + const RuleNoSwitch + const RuleWhiteBoxFileName + const RuleWhiteBoxJustification + var Analyzer = mustAnalyzer(Config{}) + var ErrBaselineMismatch = errors.New("teststyle baseline mismatch") + func Diff(want, got Baseline) string + func NewAnalyzer(config Config) (*analysis.Analyzer, error) + func WriteBaseline(path string, baseline Baseline) error + type Baseline struct + TestConditionals []ConditionalBaseline + WhiteBoxFiles []WhiteBoxBaseline + func ReadBaseline(path string) (Baseline, error) + func Scan(root string) (Baseline, error) + func ScanWithConfig(root string, config Config) (Baseline, error) + func (b *Baseline) Normalize() + func (b Baseline) HasFinding(finding Finding) bool + type ConditionalBaseline struct + Count int + Function string + Kind string + Path string + type Config struct + BaselinePath string + DisabledRules []string + Root string + WhiteBoxJustificationPrefix string + type Finding struct + Column int + Function string + Kind string + Line int + Message string + Package string + Path string + Reason string + RuleID string + type WhiteBoxBaseline struct + Package string + Path string + Reason string