(t *testing.T)
| 528 | } |
| 529 | |
| 530 | func TestImplements(t *testing.T) { |
| 531 | t.Parallel() |
| 532 | |
| 533 | mockT := new(testing.T) |
| 534 | |
| 535 | if !Implements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterConformingObject)) { |
| 536 | t.Error("Implements method should return true: AssertionTesterConformingObject implements AssertionTesterInterface") |
| 537 | } |
| 538 | if Implements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterNonConformingObject)) { |
| 539 | t.Error("Implements method should return false: AssertionTesterNonConformingObject does not implements AssertionTesterInterface") |
| 540 | } |
| 541 | if Implements(mockT, (*AssertionTesterInterface)(nil), nil) { |
| 542 | t.Error("Implements method should return false: nil does not implement AssertionTesterInterface") |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | func TestNotImplements(t *testing.T) { |
| 547 | t.Parallel() |
nothing calls this directly
no test coverage detected