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

Function Implements

internal/testify/require/require.go:844–852  ·  view source on GitHub ↗

Implements asserts that an object is implemented by the specified interface. assert.Implements(t, (*MyInterface)(nil), new(MyObject))

(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

842//
843// assert.Implements(t, (*MyInterface)(nil), new(MyObject))
844func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
845 if h, ok := t.(tHelper); ok {
846 h.Helper()
847 }
848 if assert.Implements(t, interfaceObject, object, msgAndArgs...) {
849 return
850 }
851 t.FailNow()
852}
853
854// Implementsf asserts that an object is implemented by the specified interface.
855//

Callers 5

TestDeref_emptyCtxFunction · 0.92
TestDeref_emptyCtx_EvalFunction · 0.92
ImplementsMethod · 0.70
TestImplementsFunction · 0.70

Calls 3

ImplementsFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 4

TestDeref_emptyCtxFunction · 0.74
TestDeref_emptyCtx_EvalFunction · 0.74
TestImplementsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…