Documentation
¶
Index ¶
- Variables
- func ExitCodeFromText(s string) *int
- func IsDocs(file string) bool
- func IsGenerated(file, content string) bool
- func IsLockfile(file string) bool
- func IsSnapshotFile(file string) bool
- func MasksExitCode(command string) bool
- func MatchGlob(pattern, file string) bool
- func UpdatesSnapshots(command string) bool
- type Detector
- type ManifestKind
- type Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGlobs = []string{
"*_test.go",
"test_*.py", "*_test.py", "tests/**", "conftest.py",
"*.test.*", "*.spec.*", "__tests__/**",
"src/test/**",
"spec/**", "test/**",
"__snapshots__/**", "*.snap",
}
View Source
var SnapshotGlobs = []string{"__snapshots__/**", "*.snap"}
Functions ¶
func ExitCodeFromText ¶
func IsGenerated ¶
func IsLockfile ¶
func IsSnapshotFile ¶
func MasksExitCode ¶
func UpdatesSnapshots ¶
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func (*Detector) Detect ¶
Detect also returns the part of a compound command that runs the tests, for example "go test ./..." from "go vet ./... && go test ./...".
func (*Detector) IsTestFile ¶
type ManifestKind ¶
type ManifestKind int
const ( NotManifest ManifestKind = iota Dependency CIConfig BuildConfig )
func Classify ¶
func Classify(file string) ManifestKind
Click to show internal directories.
Click to hide internal directories.