package logparse
import "golang.org/x/build/cmd/greplogs/internal/logparse"
Package logparse contains functions for parsing and analyzing build and test logs produced by all.bash.
Index ¶
Types ¶
type Failure ¶
type Failure struct { // Package is the Go package of this failure. In the case of a // testing.T failure, this will be the package of the test. Package string // Test identifies the failed test function. If this is not a // testing.T failure, this will be "". Test string // Message is the summarized failure message. This will be one // line of text. Message string // FullMessage is a substring of the log that captures the // entire failure message. It may be many lines long. FullMessage string // Function is the fully qualified name of the function where // this failure happened, if known. This helps distinguish // between generic errors like "out of bounds" and is more // stable for matching errors than file/line. Function string // File is the source file where this failure happened, if // known. File string // Line is the source line where this failure happened, if // known. Line int // OS and Arch are the GOOS and GOARCH of this failure. OS, Arch string }
Failure records a failure extracted from an all.bash log.
func Extract ¶
Extract parses the failures from all.bash log m.
func (Failure) String ¶
Source Files ¶
doc.go failure.go matcher.go
- Version
- v0.0.0-20250421191922-3619c213cff3 (latest)
- Published
- Apr 21, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 3 months ago –
Tools for package owners.