go/src/internal/trace/testtrace/expectation.go

type Expectation

// ExpectSuccess returns an Expectation that trivially expects success.
func ExpectSuccess() *Expectation {}

// Check validates whether err conforms to the expectation. Returns
// an error if it does not conform.
//
// Conformance means that if failure is true, then err must be non-nil.
// If err is non-nil, then it must match errorMatcher.
func (e *Expectation) Check(err error) error {}

// ParseExpectation parses the serialized form of an Expectation.
func ParseExpectation(data []byte) (*Expectation, error) {}

func parseMatcher(quoted string) (*regexp.Regexp, error) {}