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{})
| 855 | // |
| 856 | // assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted") |
| 857 | func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) { |
| 858 | if h, ok := t.(tHelper); ok { |
| 859 | h.Helper() |
| 860 | } |
| 861 | if assert.Implementsf(t, interfaceObject, object, msg, args...) { |
| 862 | return |
| 863 | } |
| 864 | t.FailNow() |
| 865 | } |
| 866 | |
| 867 | // InDelta asserts that the two numerals are within delta of each other. |
| 868 | // |
no test coverage detected
searching dependent graphs…