Documentation
¶
Overview ¶
Package analyzer provides code analysis implementations for the ARS pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C6Analyzer ¶
type C6Analyzer struct {
// contains filtered or unexported fields
}
C6Analyzer implements the pipeline.Analyzer interface for C6: Testing Infrastructure. It measures test detection, test-to-code ratio, coverage parsing, test isolation, and assertion density. It also implements GoAwareAnalyzer for Go-specific analysis via SetGoPackages.
func NewC6Analyzer ¶
func NewC6Analyzer(tsParser *parser.TreeSitterParser) *C6Analyzer
NewC6Analyzer creates a C6Analyzer with Tree-sitter parser for multi-language analysis.
func (*C6Analyzer) Analyze ¶
func (a *C6Analyzer) Analyze(targets []*types.AnalysisTarget) (*types.AnalysisResult, error)
Analyze runs all 5 C6 sub-metrics over the parsed packages.
func (*C6Analyzer) Name ¶
func (a *C6Analyzer) Name() string
Name returns the analyzer display name.
func (*C6Analyzer) SetGoPackages ¶
func (a *C6Analyzer) SetGoPackages(pkgs []*parser.ParsedPackage)
SetGoPackages stores Go-specific parsed packages for use during Analyze.
Click to show internal directories.
Click to hide internal directories.