result

package
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IgnoreRunning maps RUNNING to NO_RESULT
	IgnoreRunning = true
	// FailRunning maps RUNNING to FAIL
	FailRunning = 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 or FLAKY.

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 IsFailingResult added in v0.0.15

func IsFailingResult(rowResult statuspb.TestStatus) bool

IsFailingResult returns true if the test status is any failing status, including CATEGORIZED_FAILURE, BUILD_FAIL, and more.

func IsPassingResult added in v0.0.15

func IsPassingResult(rowResult statuspb.TestStatus) bool

IsPassingResult returns true if the test status is any passing status, including PASS_WITH_SKIPS, BUILD_PASSED, and more.

func Iter

func Iter(ctx context.Context, results []int32) <-chan statuspb.TestStatus

Iter returns a channel that outputs the result for each column, decoding the run-length-encoding.

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 Map

func Map(ctx context.Context, rows []*statepb.Row) map[string]<-chan statuspb.TestStatus

Map returns a per-column result output channel for each row.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL