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

Method IsTrue

core/assert/boolean.go:40–42  ·  view source on GitHub ↗

IsTrue asserts that the supplied boolean is true

()

Source from the content-addressed store, hash-verified

38
39// IsTrue asserts that the supplied boolean is true
40func (o OnBoolean) IsTrue() bool {
41 return o.Equals(true)
42}
43
44// IsFalse asserts that the supplied boolean is false
45func (o OnBoolean) IsFalse() bool {

Callers 2

ExampleBooleanFunction · 0.80

Calls 1

EqualsMethod · 0.95

Tested by 2

ExampleBooleanFunction · 0.64