MCPcopy
hub / github.com/expr-lang/expr / Implements

Method Implements

internal/testify/assert/assertion_forward.go:674–679  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

672//
673// a.Implements((*MyInterface)(nil), new(MyObject))
674func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool {
675 if h, ok := a.t.(tHelper); ok {
676 h.Helper()
677 }
678 return Implements(a.t, interfaceObject, object, msgAndArgs...)
679}
680
681// Implementsf asserts that an object is implemented by the specified interface.
682//

Callers 3

TestImplementsWrapperFunction · 0.45
ImplementsFunction · 0.45
NotImplementsFunction · 0.45

Calls 2

ImplementsFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestImplementsWrapperFunction · 0.36