stretchr/testify
Auf GitHub ansehenassert: NotNil accepts non-nillable types and doesn't fail
Open
#570 geöffnet am 7. März 2018
help wanted
Repository-Metriken
- Stars
- (25.958 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 15h) (2 gemergte PRs in 30 T)
Beschreibung
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".