-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
assert: print underlying objects when comparing pointers values #1118
Comments
Can I take this issue? |
hi, any updates on this? |
Hi I can take this one on, if @rajkumarGosavi isn't working on this. @slavaavr |
@jyturley he there. Initially, I thought about printing pointer values for any type in the right way (without memory addresses). But then I checked library implementation and found out that they use fmt.Sptintf("%#v"), so it will be too hard to implement this feature from the scratch |
Will be taking this since this issue has been idle for a while. |
Any update? |
This is still relevant, would be thrilled to have this feature implemented. Is anybody able to pick it up? |
The original PR that closes this issue seems to still be open and waiting for approve + merge: #1287 The changes are now out-of-date and need to be rebased on top of the most up to date changes on master. WIll take a look and see if I can the builds working again with those changes on top of master. |
The PR is now rebased on top of master and checks are passing on my fork, but are failing on the PR. Additional discussion on the PR: #1287 (comment) |
Example
The output is
It would be incredible to have the actual values being compared printed as well. For instance
expected: (*int)(0xc0000189b8)
could beexpected: (*int)(0xc0000189b8) 1
.Currently, I am abusing this helper
The text was updated successfully, but these errors were encountered: