예제 #1
0
func TestInterface(t *testing.T) {
	assert.Implements(t, (*iamiface.IAMAPI)(nil), iam.New(nil))
}
예제 #2
0
// Implements asserts that an object is implemented by the specified interface.
//
//    require.Implements(t, (*MyInterface)(nil), new(MyObject), "MyObject")
func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
	if !assert.Implements(t, interfaceObject, object, msgAndArgs...) {
		t.FailNow()
	}
}