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

Method Test

core/assert/assertion.go:201–209  ·  view source on GitHub ↗

Test commits the pending output if the condition is not true.

(condition bool)

Source from the content-addressed store, hash-verified

199
200// Test commits the pending output if the condition is not true.
201func (a *Assertion) Test(condition bool) bool {
202 if !condition {
203 if a.level <= Error {
204 a.level = Error
205 }
206 a.Commit()
207 }
208 return condition
209}
210
211// TestDeepEqual adds the entries for Got and Expect, then tests if they are the
212// same using compare.DeepEqual, commiting if they are not.

Callers 15

TestPathContainsFunction · 0.80
IsAtLeastMethod · 0.80
IsAtMostMethod · 0.80
EqualsMethod · 0.80
IsNilMethod · 0.80
IsNotNilMethod · 0.80
EqualsMethod · 0.80
NotEqualsMethod · 0.80
ImplementsMethod · 0.80
EqualsMethod · 0.80
NotEqualsMethod · 0.80
EqualsMethod · 0.80

Calls 1

CommitMethod · 0.95

Tested by 2

TestPathContainsFunction · 0.64
checkFunction · 0.64