MCPcopy Create free account
hub / github.com/stretchr/testify / IsNotType

Method IsNotType

assert/assertion_forward.go:888–893  ·  view source on GitHub ↗

IsNotType asserts that the specified objects are not of the same type. a.IsNotType(&NotMyStruct{}, &MyStruct{})

(theType interface{}, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

886//
887// a.IsNotType(&NotMyStruct{}, &MyStruct{})
888func (a *Assertions) IsNotType(theType interface{}, object interface{}, msgAndArgs ...interface{}) bool {
889 if h, ok := a.t.(tHelper); ok {
890 h.Helper()
891 }
892 return IsNotType(a.t, theType, object, msgAndArgs...)
893}
894
895// IsNotTypef asserts that the specified objects are not of the same type.
896//

Callers

nothing calls this directly

Calls 2

IsNotTypeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected