(t *testing.T)
| 850 | } |
| 851 | |
| 852 | func TestNotNil(t *testing.T) { |
| 853 | t.Parallel() |
| 854 | |
| 855 | mockT := new(testing.T) |
| 856 | |
| 857 | if !NotNil(mockT, new(AssertionTesterConformingObject)) { |
| 858 | t.Error("NotNil should return true: object is not nil") |
| 859 | } |
| 860 | if NotNil(mockT, nil) { |
| 861 | t.Error("NotNil should return false: object is nil") |
| 862 | } |
| 863 | if NotNil(mockT, (*struct{})(nil)) { |
| 864 | t.Error("NotNil should return false: object is (*struct{})(nil)") |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | func TestNil(t *testing.T) { |
| 869 | t.Parallel() |