Documentation
¶
Overview ¶
Package matchers provides framework-specific detection rules.
Index ¶
Constants ¶
View Source
const ( PriorityGeneric = 100 // jest, go-testing PriorityE2E = 150 // playwright PrioritySpecialized = 200 // vitest (has specific globals mode) )
Priority determines detection order when multiple frameworks could match. Higher values = checked first. Use increments of 50 for future insertions.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigInfo ¶ added in v1.1.1
type Matcher ¶
type Matcher interface {
Name() string
Languages() []domain.Language
MatchImport(importPath string) bool
ConfigPatterns() []string
ExtractImports(ctx context.Context, content []byte) []string
ParseConfig(ctx context.Context, content []byte) *ConfigInfo
Priority() int
}
Matcher defines the interface for framework-specific detection.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func DefaultRegistry ¶
func DefaultRegistry() *Registry
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.