stretchr/testify
assert: NotNil accepts non-nillable types and doesn't fail
Offen
#570 geöffnet am 07.03.2018
help wanted
Repository-Metriken
- Stars
- (25.958 Sterne)
- 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".