stretchr/testify
assert: NotNil accepts non-nillable types and doesn't fail
Aberta
#570 aberto em 7 de mar. de 2018
help wanted
Métricas do repositório
- Stars
- (25.958 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 15h) (2 fundiu PRs em 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".