stretchr/testify
View on GitHubassert: NotNil accepts non-nillable types and doesn't fail
Open
#570 opened on Mar 7, 2018
help wanted
Repository metrics
- Stars
- (25,958 stars)
- PR merge metrics
- (Avg merge 6d 15h) (2 merged PRs in 30d)
Description
isNil will always return false, so NotNil will always return true for int, string, struct, etc.
I would expect it to error with "invalid type".