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

Function IsTypef

assert/assertion_format.go:442–447  ·  view source on GitHub ↗

IsTypef asserts that the specified objects are of the same type.

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

Source from the content-addressed store, hash-verified

440
441// IsTypef asserts that the specified objects are of the same type.
442func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) bool {
443 if h, ok := t.(tHelper); ok {
444 h.Helper()
445 }
446 return IsType(t, expectedType, object, append([]interface{}{msg}, args...)...)
447}
448
449// JSONEqf asserts that two JSON strings are equivalent.
450//

Callers 2

IsTypefFunction · 0.92
IsTypefMethod · 0.70

Calls 2

IsTypeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected