Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected nil, but got: (unsafe.Pointer)(nil) #863

Closed
eloff opened this issue Jan 3, 2020 · 2 comments
Closed

Expected nil, but got: (unsafe.Pointer)(nil) #863

eloff opened this issue Jan 3, 2020 · 2 comments
Labels
assert.IsNil About assert.IsNil/IsNotNil bug pkg-assert Change related to package testify/assert
Milestone

Comments

@eloff
Copy link

eloff commented Jan 3, 2020

Nil/NotNil assertions should work with unsafe.Pointer, since == nil and != nil do.

@boyan-soubachov
Copy link
Collaborator

Thanks for this @eloff , it's a good point. I'd be happy to look into this or if you'd like, submit a PR which I'd be very glad to review and merge :)

@dolmen
Copy link
Collaborator

dolmen commented Nov 8, 2023

Fixed by #1319.

@dolmen dolmen added bug pkg-assert Change related to package testify/assert assert.IsNil About assert.IsNil/IsNotNil labels Nov 8, 2023
@dolmen dolmen closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert.IsNil About assert.IsNil/IsNotNil bug pkg-assert Change related to package testify/assert
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants