MCPcopy
hub / github.com/stretchr/testify / IsNotType

Function IsNotType

require/require.go:1117–1125  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

1115//
1116// require.IsNotType(t, &NotMyStruct{}, &MyStruct{})
1117func 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//

Callers 1

IsNotTypeMethod · 0.70

Calls 3

IsNotTypeFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected