(t *testing.T)
| 486 | } |
| 487 | |
| 488 | func TestNotImplements(t *testing.T) { |
| 489 | |
| 490 | mockT := new(testing.T) |
| 491 | |
| 492 | if !NotImplements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterNonConformingObject)) { |
| 493 | t.Error("NotImplements method should return true: AssertionTesterNonConformingObject does not implement AssertionTesterInterface") |
| 494 | } |
| 495 | if NotImplements(mockT, (*AssertionTesterInterface)(nil), new(AssertionTesterConformingObject)) { |
| 496 | t.Error("NotImplements method should return false: AssertionTesterConformingObject implements AssertionTesterInterface") |
| 497 | } |
| 498 | if NotImplements(mockT, (*AssertionTesterInterface)(nil), nil) { |
| 499 | t.Error("NotImplements method should return false: nil can't be checked to be implementing AssertionTesterInterface or not") |
| 500 | } |
| 501 | |
| 502 | } |
| 503 | |
| 504 | func TestIsType(t *testing.T) { |
| 505 |
nothing calls this directly
no test coverage detected
searching dependent graphs…