MCPcopy
hub / github.com/stretchr/testify / Implementsf

Function Implementsf

assert/assertion_format.go:351–356  ·  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

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

Callers 2

ImplementsfFunction · 0.92
ImplementsfMethod · 0.70

Calls 2

ImplementsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected