Documentation ¶
Index ¶
- Constants
- func Coalesce(result statuspb.TestStatus, ignoreRunning bool) statuspb.TestStatus
- func Failing(rowResult statuspb.TestStatus) bool
- func GTE(rowResult, compareTo statuspb.TestStatus) bool
- func LTE(rowResult, compareTo statuspb.TestStatus) bool
- func Map(rows []*statepb.Row) map[string]IterFunc
- func Passing(rowResult statuspb.TestStatus) bool
- type IterFunc
Constants ¶
View Source
const ( // IgnoreRunning maps RUNNING to NO_RESULT IgnoreRunning = true // ShowRunning maps RUNNING to UNKNOWN ShowRunning = false )
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
func Coalesce(result statuspb.TestStatus, ignoreRunning bool) statuspb.TestStatus
Coalesce reduces the result to PASS, NO_RESULT, FAIL, FLAKY or UNKNOWN.
func Failing ¶ added in v0.0.53
func Failing(rowResult statuspb.TestStatus) bool
Failing returns true if the test status is any failing status, including CATEGORIZED_FAILURE, BUILD_FAIL, and more.
func GTE ¶ added in v0.0.28
func GTE(rowResult, compareTo statuspb.TestStatus) bool
GTE returns if rowResult is greater than or equal to compareTo.
func LTE ¶ added in v0.0.28
func LTE(rowResult, compareTo statuspb.TestStatus) bool
LTE returns if rowResult is less than or equal to compareTo.
func Passing ¶ added in v0.0.53
func Passing(rowResult statuspb.TestStatus) bool
Passing returns true if the test status is any passing status, including PASS_WITH_SKIPS, BUILD_PASSED, and more.
Types ¶
type IterFunc ¶ added in v0.0.140
type IterFunc func() (result statuspb.TestStatus, ok bool)
IterFunc returns a result for each column (and then !ok).
This decodes the run-length-encoding for a row's results.
Click to show internal directories.
Click to hide internal directories.