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

Function Implementsf

internal/testify/assert/assertion_format.go:344–349  ·  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

342//
343// assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")
344func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) bool {
345 if h, ok := t.(tHelper); ok {
346 h.Helper()
347 }
348 return Implements(t, interfaceObject, object, append([]interface{}{msg}, args...)...)
349}
350
351// InDeltaf asserts that the two numerals are within delta of each other.
352//

Callers 2

ImplementsfFunction · 0.92
ImplementsfMethod · 0.70

Calls 2

ImplementsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…