Implementsf asserts that an object is implemented by the specified interface. require.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")
(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{})
| 868 | // |
| 869 | // require.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted") |
| 870 | func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) { |
| 871 | if h, ok := t.(tHelper); ok { |
| 872 | h.Helper() |
| 873 | } |
| 874 | if assert.Implementsf(t, interfaceObject, object, msg, args...) { |
| 875 | return |
| 876 | } |
| 877 | t.FailNow() |
| 878 | } |
| 879 | |
| 880 | // InDelta asserts that the two numerals are within delta of each other. |
| 881 | // |
no test coverage detected