(t *testing.T)
| 744 | } |
| 745 | |
| 746 | func TestNotNil(t *testing.T) { |
| 747 | |
| 748 | mockT := new(testing.T) |
| 749 | |
| 750 | if !NotNil(mockT, new(AssertionTesterConformingObject)) { |
| 751 | t.Error("NotNil should return true: object is not nil") |
| 752 | } |
| 753 | if NotNil(mockT, nil) { |
| 754 | t.Error("NotNil should return false: object is nil") |
| 755 | } |
| 756 | if NotNil(mockT, (*struct{})(nil)) { |
| 757 | t.Error("NotNil should return false: object is (*struct{})(nil)") |
| 758 | } |
| 759 | |
| 760 | } |
| 761 | |
| 762 | func TestNil(t *testing.T) { |
| 763 |