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

Method Equals

core/assert/boolean.go:30–32  ·  view source on GitHub ↗

Equals asserts that the supplied boolean is equal to the expected boolean.

(expect bool)

Source from the content-addressed store, hash-verified

28
29// Equals asserts that the supplied boolean is equal to the expected boolean.
30func (o OnBoolean) Equals(expect bool) bool {
31 return o.Compare(o.value, "==", expect).Test(o.value == expect)
32}
33
34// NotEquals asserts that the supplied boolean is not equal to the test boolean.
35func (o OnBoolean) NotEquals(test bool) bool {

Callers 2

IsTrueMethod · 0.95
IsFalseMethod · 0.95

Calls 2

TestMethod · 0.80
CompareMethod · 0.45

Tested by

no test coverage detected