Documentation
¶
Overview ¶
Package scanner provides file discovery and language detection for TestGen.
Index ¶
Constants ¶
View Source
const ( LangGo = "go" LangPython = "python" LangJavaScript = "javascript" LangTypeScript = "typescript" LangRust = "rust" LangJava = "java" )
Language constants
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
DetectLanguage determines the programming language from a file path
func GetLanguagesForExtension ¶
GetLanguagesForExtension returns languages that use the given extension
func GetSupportedExtensions ¶
func GetSupportedExtensions() []string
GetSupportedExtensions returns all supported file extensions
func IsJavaScriptFamily ¶
IsJavaScriptFamily returns true if the language is JS or TS
func NormalizeLanguage ¶
NormalizeLanguage converts language aliases to standard names
Types ¶
type Options ¶
type Options struct {
Recursive bool
IncludePattern string
ExcludePattern string
IgnoreFile string // Path to .testgenignore
}
Options configures the scanner behavior
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner discovers and filters source files
type SourceFile ¶
type SourceFile = models.SourceFile
SourceFile is an alias for the models.SourceFile for package-local use
Click to show internal directories.
Click to hide internal directories.