IsNotType asserts that the specified objects are not of the same type. require.IsNotType(t, &NotMyStruct{}, &MyStruct{})
(t TestingT, theType interface{}, object interface{}, msgAndArgs ...interface{})
| 1115 | // |
| 1116 | // require.IsNotType(t, &NotMyStruct{}, &MyStruct{}) |
| 1117 | func IsNotType(t TestingT, theType interface{}, object interface{}, msgAndArgs ...interface{}) { |
| 1118 | if h, ok := t.(tHelper); ok { |
| 1119 | h.Helper() |
| 1120 | } |
| 1121 | if assert.IsNotType(t, theType, object, msgAndArgs...) { |
| 1122 | return |
| 1123 | } |
| 1124 | t.FailNow() |
| 1125 | } |
| 1126 | |
| 1127 | // IsNotTypef asserts that the specified objects are not of the same type. |
| 1128 | // |