IsNotNil asserts that the supplied value was not a nil. Typed nils will also fail.
()
| 59 | // IsNotNil asserts that the supplied value was not a nil. |
| 60 | // Typed nils will also fail. |
| 61 | func (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. |
| 66 | func (o OnValue) Equals(expect interface{}) bool { |