MCPcopy Create free account
hub / github.com/google/gapid / ThatError

Method ThatError

core/assert/error.go:27–29  ·  view source on GitHub ↗

ThatError returns an OnError for error type assertions.

(err error)

Source from the content-addressed store, hash-verified

25
26// ThatError returns an OnError for error type assertions.
27func (a Assertion) ThatError(err error) OnError {
28 return OnError{Assertion: a, err: err}
29}
30
31// Succeeded asserts that the error value was nil.
32func (o OnError) Succeeded() bool {

Callers 15

TestParseLogFunction · 0.80
TestCommandFunction · 0.80
TestCommandFailedFunction · 0.80
TestCommandBadProgramFunction · 0.80
TestCommandBadDirFunction · 0.80
TestCommandCancelFunction · 0.80
TestCommandCaptureStdoutFunction · 0.80
TestCommandCallFunction · 0.80
TestCommandEnvironmentFunction · 0.80
TestCommandOnFunction · 0.80
TestDimensionFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestParseLogFunction · 0.64
TestCommandFunction · 0.64
TestCommandFailedFunction · 0.64
TestCommandBadProgramFunction · 0.64
TestCommandBadDirFunction · 0.64
TestCommandCancelFunction · 0.64
TestCommandCaptureStdoutFunction · 0.64
TestCommandCallFunction · 0.64
TestCommandEnvironmentFunction · 0.64
TestCommandOnFunction · 0.64
TestDimensionFunction · 0.64