Documentation
¶
Index ¶
- type Summary
- type TestManager
- func (tm *TestManager) AddTestOutput(testOutput TestOutputLine)
- func (tm *TestManager) GetLogCount(testRef TestReference) int
- func (tm *TestManager) GetLogs(testRef TestReference) []string
- func (tm *TestManager) GetTest(index int) *TestNode
- func (tm *TestManager) GetTestCount() int
- func (tm *TestManager) GetTests(yield func(int, *TestNode) bool)
- type TestNode
- type TestOutputLine
- type TestReference
- type TestSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
func NewSummary ¶
func NewSummary() *Summary
func (*Summary) AddPackage ¶
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() *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) []string
func (*TestManager) GetTest ¶
func (tm *TestManager) GetTest(index int) *TestNode
func (*TestManager) GetTestCount ¶
func (tm *TestManager) GetTestCount() int
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"`
Test string `json:"test,omitempty"`
Elapsed float64 `json:"elapsed,omitempty"`
Output string `json:"output,omitempty"`
}
JSON output from `go test -json`
type TestReference ¶
type TestSummary ¶
Click to show internal directories.
Click to hide internal directories.