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

Add tests for validations.go #8

Merged
merged 2 commits into from
Apr 19, 2018
Merged

Add tests for validations.go #8

merged 2 commits into from
Apr 19, 2018

Conversation

mdiazv
Copy link
Contributor

@mdiazv mdiazv commented Apr 19, 2018

100% coverage with a table based test that runs different inputs over every validator

It is not correct, nor right. No examples of it's good usage could be
constructed so it won't ever be able to be tested properly. We're better
off without it.
}
for i, val := range data {
for j, fn := range fns {
r, _ := fn(val)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@mdiazv mdiazv merged commit 8d29e3f into master Apr 19, 2018
@mdiazv mdiazv deleted the test-Validations branch April 19, 2018 20:47
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.

2 participants