stretchr/testify
GitHub で見るassert: NotNil accepts non-nillable types and doesn't fail
Open
#570 opened on 2018年3月7日
help wanted
Repository metrics
- Stars
- (25,958 stars)
- PR merge metrics
- (平均マージ 6d 15h) (30d で 2 merged PRs)
説明
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".