MCPcopy Create free account
hub / github.com/stretchr/testify / NotImplementsf

Function NotImplementsf

assert/assertion_format.go:645–650  ·  view source on GitHub ↗

NotImplementsf asserts that an object does not implement the specified interface. assert.NotImplementsf(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

643//
644// assert.NotImplementsf(t, (*MyInterface)(nil), new(MyObject), "error message %s", "formatted")
645func NotImplementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) bool {
646 if h, ok := t.(tHelper); ok {
647 h.Helper()
648 }
649 return NotImplements(t, interfaceObject, object, append([]interface{}{msg}, args...)...)
650}
651
652// NotNilf asserts that the specified object is not nil.
653//

Callers 2

NotImplementsfFunction · 0.92
NotImplementsfMethod · 0.70

Calls 2

NotImplementsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected