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

feat: use go-cmp for testing #14

Merged
merged 1 commit into from
Dec 4, 2023
Merged

feat: use go-cmp for testing #14

merged 1 commit into from
Dec 4, 2023

Conversation

juan131
Copy link
Owner

@juan131 juan131 commented Dec 4, 2023

Description of the change

This PR replaces reflect.DeepEqual with cmp.Equal on tests.

Benefits

go-cmp is a a more powerful and safer alternative to reflect.DeepEqual for comparing whether two values are semantically equal.

Possible drawbacks

None

Applicable issues

None

Additional information

N/A

Signed-off-by: juan131 <jariza@vmware.com>
@juan131 juan131 merged commit e27749b into main Dec 4, 2023
2 checks passed
@juan131 juan131 deleted the feat/go-cmp branch December 4, 2023 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant