Documentation ¶
Overview ¶
Package testparser provides a parser for go test output
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegexTest = regexp.MustCompile(`=== RUN (.+)`) RegexStatus = regexp.MustCompile(`^\s*--- (PASS|FAIL|SKIP): (.+) \((\d+\.\d+)(?: seconds|s)\)$`) RegexCoverage = regexp.MustCompile(`^coverage:\s+(\d+\.\d+)%\s+of\s+statements(?:\sin\s.+)?$`) RegexResult = regexp.MustCompile(`^(ok|FAIL)\s+([^ ]+)\s+(?:(\d+\.\d+)s|(\[\w+ failed]))(?:\s+coverage:\s+(\d+\.\d+)%\sof\sstatements(?:\sin\s.+)?)?$`) RegexOuput = regexp.MustCompile(`( )*\t(.*)`) RegexSummary = regexp.MustCompile(`^(PASS|FAIL|SKIP)$`) RegexFail = regexp.MustCompile(`(.*\w+.go)*:(\d+):(\d+):(.*\w+)`) )
Regular Expressions for various parts of the go test output
Functions ¶
This section is empty.
Types ¶
type FailLine ¶
type PackageResult ¶
Click to show internal directories.
Click to hide internal directories.