MCPcopy Index your code
hub / github.com/stretchr/testify / IsNotTypef

Function IsNotTypef

assert/assertion_format.go:451–456  ·  view source on GitHub ↗

IsNotTypef asserts that the specified objects are not of the same type. assert.IsNotTypef(t, &NotMyStruct{}, &MyStruct{}, "error message %s", "formatted")

(t TestingT, theType interface{}, object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

449//
450// assert.IsNotTypef(t, &NotMyStruct{}, &MyStruct{}, "error message %s", "formatted")
451func IsNotTypef(t TestingT, theType interface{}, object interface{}, msg string, args ...interface{}) bool {
452 if h, ok := t.(tHelper); ok {
453 h.Helper()
454 }
455 return IsNotType(t, theType, object, append([]interface{}{msg}, args...)...)
456}
457
458// IsTypef asserts that the specified objects are of the same type.
459//

Callers 2

IsNotTypefFunction · 0.92
IsNotTypefMethod · 0.70

Calls 2

IsNotTypeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…