(t *testing.T)
| 760 | } |
| 761 | |
| 762 | func TestNil(t *testing.T) { |
| 763 | |
| 764 | mockT := new(testing.T) |
| 765 | |
| 766 | if !Nil(mockT, nil) { |
| 767 | t.Error("Nil should return true: object is nil") |
| 768 | } |
| 769 | if !Nil(mockT, (*struct{})(nil)) { |
| 770 | t.Error("Nil should return true: object is (*struct{})(nil)") |
| 771 | } |
| 772 | if Nil(mockT, new(AssertionTesterConformingObject)) { |
| 773 | t.Error("Nil should return false: object is not nil") |
| 774 | } |
| 775 | |
| 776 | } |
| 777 | |
| 778 | func TestTrue(t *testing.T) { |
| 779 |