Documentation
¶
Index ¶
- func CompareTestNode(a, b *TestNode) int
- type Summary
- type TestManager
- func (tm *TestManager) AddTestOutput(testOutput TestOutputLine)
- func (tm *TestManager) GetLogCount(testRef TestReference) int
- func (tm *TestManager) GetLogs(testRef TestReference) []logparse.LogEntry
- func (tm *TestManager) GetTest(index int) *TestNode
- func (tm *TestManager) GetTestCount() int
- func (tm *TestManager) GetTests(yield func(int, *TestNode) bool)
- func (tm *TestManager) ScanStdin(ctx context.Context, reader io.Reader) error
- type TestManagerOpts
- type TestNode
- type TestOutputLine
- type TestReference
- type TestSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareTestNode ¶ added in v0.10.0
Types ¶
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
func NewSummary ¶
func NewSummary() *Summary
func (*Summary) AddToPackage ¶ added in v0.11.0
func (*Summary) PackageSummary ¶
func (s *Summary) PackageSummary() TestSummary
func (*Summary) Total ¶
func (s *Summary) Total() TestSummary
type TestManager ¶
type TestManager struct {
// contains filtered or unexported fields
}
func NewTestManager ¶
func NewTestManager(opts TestManagerOpts) *TestManager
func (*TestManager) AddTestOutput ¶
func (tm *TestManager) AddTestOutput(testOutput TestOutputLine)
func (*TestManager) GetLogCount ¶ added in v0.2.0
func (tm *TestManager) GetLogCount(testRef TestReference) int
func (*TestManager) GetLogs ¶
func (tm *TestManager) GetLogs(testRef TestReference) []logparse.LogEntry
func (*TestManager) GetTest ¶
func (tm *TestManager) GetTest(index int) *TestNode
func (*TestManager) GetTestCount ¶
func (tm *TestManager) GetTestCount() int
type TestManagerOpts ¶ added in v0.7.0
type TestManagerOpts struct {
ParseLogs bool
}
type TestNode ¶
type TestNode struct {
Ref TestReference
Elapsed time.Duration
Status string // pass, fail, run
}
type TestOutputLine ¶
type TestOutputLine struct {
Time time.Time `json:"Time"`
Action string `json:"Action"`
Package string `json:"Package"`
ImportPath string `json:"ImportPath,omitempty"`
Test string `json:"Test,omitempty"`
Elapsed float64 `json:"Elapsed,omitempty"`
Output string `json:"output,omitempty"`
}
JSON output from `go test -json`
type TestReference ¶
Click to show internal directories.
Click to hide internal directories.