github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/citogo/types/types.go (about)

     1  package types
     2  
     3  type Outcome string
     4  
     5  const (
     6  	OutcomeSuccess Outcome = "success"
     7  	OutcomeFlake   Outcome = "flake"
     8  	OutcomeFail    Outcome = "fail"
     9  )
    10  
    11  func (o Outcome) Abbrv() string {
    12  	switch o {
    13  	case OutcomeSuccess:
    14  		return "PASS"
    15  	case OutcomeFlake:
    16  		return "FLK?"
    17  	case OutcomeFail:
    18  		return "FAIL"
    19  	default:
    20  		return "????"
    21  	}
    22  }
    23  
    24  type TestResult struct {
    25  	Outcome  Outcome
    26  	TestName string
    27  	Where    string
    28  	Branch   string
    29  
    30  	BuildID  string
    31  	Prefix   string
    32  	BuildURL string
    33  }