-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use table tests instead of helpers.PreparerValidator #155
Comments
Well I also made a CheckValidator and ApplyValidator as well as a few other questionable helpers (e.g |
Instead of putting it in helpers, I could put it in the resource package, and make generic table test for task and prepares? |
No, it probably should be table tests in each of the test files if you really need them. I noticed a lot of the places where it's being used are just single checks. Helper functions in each module may make more sense. |
Here is a sample of a table test that can replace the two test cases and that helper func. It's based on the unmerged changes, so I won't open a PR until that is merged.
|
This issue has gone pretty stale. I'm going to close it. We'll fix tests as we go. |
Once #142 is merged,
PreparerValidator
will be in the code. It should be removed in favor of something like http://dave.cheney.net/2013/06/09/writing-table-driven-tests-in-goThe text was updated successfully, but these errors were encountered: