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

Method IsNotNil

core/assert/value.go:61–63  ·  view source on GitHub ↗

IsNotNil asserts that the supplied value was not a nil. Typed nils will also fail.

()

Source from the content-addressed store, hash-verified

59// IsNotNil asserts that the supplied value was not a nil.
60// Typed nils will also fail.
61func (o OnValue) IsNotNil() bool {
62 return o.Compare(o.value, "!=", "nil").Test(!isNil(o.value))
63}
64
65// Equals asserts that the supplied value is equal to the expected value.
66func (o OnValue) Equals(expect interface{}) bool {

Callers 12

TestDictionaryFunction · 0.80
ExampleNilFunction · 0.80
ExampleTypedNilFunction · 0.80
ExampleNotNilFunction · 0.80
TestFormatNamesFunction · 0.80
TestImportCaptureFunction · 0.80
TestGetDevicesForReplayFunction · 0.80
TestGetFunction · 0.80
checkReadFromStashFunction · 0.80
TestSimpleUnreachableFunction · 0.80

Calls 3

TestMethod · 0.80
isNilFunction · 0.70
CompareMethod · 0.45

Tested by 12

TestDictionaryFunction · 0.64
ExampleNilFunction · 0.64
ExampleTypedNilFunction · 0.64
ExampleNotNilFunction · 0.64
TestFormatNamesFunction · 0.64
TestImportCaptureFunction · 0.64
TestGetDevicesForReplayFunction · 0.64
TestGetFunction · 0.64
checkReadFromStashFunction · 0.64
TestSimpleUnreachableFunction · 0.64