MCPcopy Index your code
hub / github.com/expr-lang/expr / Implementsf

Function Implementsf

internal/testify/require/require.go:857–865  ·  view source on GitHub ↗

Implementsf asserts that an object is implemented by the specified interface. assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

855//
856// assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")
857func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) {
858 if h, ok := t.(tHelper); ok {
859 h.Helper()
860 }
861 if assert.Implementsf(t, interfaceObject, object, msg, args...) {
862 return
863 }
864 t.FailNow()
865}
866
867// InDelta asserts that the two numerals are within delta of each other.
868//

Callers 1

ImplementsfMethod · 0.70

Calls 3

ImplementsfFunction · 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…