-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Consider using ginkgo.BeComparableTo instead of ginkgo.Equal #8095
Comments
cc @killianmuldoon @schrej (fyi, just in case it's interesting for you because of somewhat related work on komega in CR) |
Thanks! |
I understand go-cmp does much more than plain equality, but plain equality is what we need in most cases and using BeCompatableTo is less readable than Equal when checking equality What about proposing to add a DeepEqual alias in gomega calling BeCompatableTo without options? |
The naming of The benefit here is that when comparing structs (especially large ones), the output of When not comparing large structs and simply comparing small values like most strings, int, bool, etc |
As someone who regularly has to compare large struct dumps by gomega manually I would really appreciate it if we find a way to use the functionality that |
Given that we agree on this, +1 to propose a change/an alias into gomega |
/triage accepted |
/help |
@fabriziopandini: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
Sounds like a great improvement to me. Would be good if something can try it out and potentially open a PR if it works as expected in our case
Kudos @dthorsen for bringing this up
/kind cleanup
/area testing
The text was updated successfully, but these errors were encountered: