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

Function ExampleBoolean

core/assert/boolean_test.go:20–26  ·  view source on GitHub ↗

An example of testing integer values

()

Source from the content-addressed store, hash-verified

18
19// An example of testing integer values
20func ExampleBoolean() {
21 assert := assert.To(nil)
22 assert.For("true Equals true").ThatBoolean(true).Equals(true)
23 assert.For("true NotEquals false").ThatBoolean(true).NotEquals(false)
24 assert.For("true IsTrue").ThatBoolean(true).IsTrue()
25 assert.For("false IsFalse").ThatBoolean(false).IsFalse()
26}

Callers

nothing calls this directly

Calls 6

ThatBooleanMethod · 0.80
ForMethod · 0.80
IsTrueMethod · 0.80
IsFalseMethod · 0.80
EqualsMethod · 0.65
NotEqualsMethod · 0.45

Tested by

no test coverage detected