| 560 | } |
| 561 | |
| 562 | func TestIsType(t *testing.T) { |
| 563 | t.Parallel() |
| 564 | |
| 565 | mockT := new(testing.T) |
| 566 | |
| 567 | if !IsType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterConformingObject)) { |
| 568 | t.Error("IsType should return true: AssertionTesterConformingObject is the same type as AssertionTesterConformingObject") |
| 569 | } |
| 570 | if IsType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterNonConformingObject)) { |
| 571 | t.Error("IsType should return false: AssertionTesterConformingObject is not the same type as AssertionTesterNonConformingObject") |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | func TestNotIsType(t *testing.T) { |
| 576 | t.Parallel() |