(t *testing.T)
| 470 | } |
| 471 | |
| 472 | func TestImplements(t *testing.T) { |
| 473 | |
| 474 | mockT := new(testing.T) |
| 475 | |
| 476 | if !Implements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterConformingObject)) { |
| 477 | t.Error("Implements method should return true: AssertionTesterConformingObject implements AssertionTesterInterface") |
| 478 | } |
| 479 | if Implements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterNonConformingObject)) { |
| 480 | t.Error("Implements method should return false: AssertionTesterNonConformingObject does not implements AssertionTesterInterface") |
| 481 | } |
| 482 | if Implements(mockT, (*AssertionTesterInterface)(nil), nil) { |
| 483 | t.Error("Implements method should return false: nil does not implement AssertionTesterInterface") |
| 484 | } |
| 485 | |
| 486 | } |
| 487 | |
| 488 | func TestNotImplements(t *testing.T) { |
| 489 |
nothing calls this directly
no test coverage detected
searching dependent graphs…