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

Function IsTypef

assert/assertion_format.go:461–466  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

459//
460// assert.IsTypef(t, &MyStruct{}, &MyStruct{}, "error message %s", "formatted")
461func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) bool {
462 if h, ok := t.(tHelper); ok {
463 h.Helper()
464 }
465 return IsType(t, expectedType, object, append([]interface{}{msg}, args...)...)
466}
467
468// JSONEqf asserts that two JSON strings are equivalent.
469//

Callers 2

IsTypefFunction · 0.92
IsTypefMethod · 0.70

Calls 2

IsTypeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…