IsNotType asserts that the specified objects are not of the same type. assert.IsNotType(t, &NotMyStruct{}, &MyStruct{})
(t TestingT, theType, object interface{}, msgAndArgs ...interface{})
| 476 | // |
| 477 | // assert.IsNotType(t, &NotMyStruct{}, &MyStruct{}) |
| 478 | func IsNotType(t TestingT, theType, object interface{}, msgAndArgs ...interface{}) bool { |
| 479 | if !isType(theType, object) { |
| 480 | return true |
| 481 | } |
| 482 | if h, ok := t.(tHelper); ok { |
| 483 | h.Helper() |
| 484 | } |
| 485 | return Fail(t, fmt.Sprintf("Object type expected to be different than %T", theType), msgAndArgs...) |
| 486 | } |
| 487 | |
| 488 | // Equal asserts that two objects are equal. |
| 489 | // |