MCPcopy Create free account
hub / github.com/expr-lang/expr / IsTypef

Function IsTypef

internal/testify/require/require.go:1113–1121  ·  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

1111
1112// IsTypef asserts that the specified objects are of the same type.
1113func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) {
1114 if h, ok := t.(tHelper); ok {
1115 h.Helper()
1116 }
1117 if assert.IsTypef(t, expectedType, object, msg, args...) {
1118 return
1119 }
1120 t.FailNow()
1121}
1122
1123// JSONEq asserts that two JSON strings are equivalent.
1124//

Callers 1

IsTypefMethod · 0.70

Calls 3

IsTypefFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…