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

Test rewrite improvements #2

Merged
merged 2 commits into from
Nov 11, 2021

Conversation

squaremo
Copy link

@squaremo squaremo commented Nov 9, 2021

A couple of readability improvements that don't add too many LoC. Readability is subjective, of course -- use what you want :-)

This is just a cosmetic thing -- there's no need for the higher-order
func used to create mini test suites, given the protocol and git
implementation. This made the Gingko version clearer, arguably, but it
can be reduced away here for a bit less nesting.

Signed-off-by: Michael Bridgen <michael@weave.works>
This tidies the random string testWithRepoAndImagePolicy() arguments
into a struct, which reduces clutter (and the chance of getting them
in the wrong order) in invocations.

Signed-off-by: Michael Bridgen <michael@weave.works>
Copy link
Owner

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

Thanks. Looks so much better now.

@darkowlzz darkowlzz merged commit f1f674a into darkowlzz:testenv-refactor Nov 11, 2021
@darkowlzz darkowlzz deleted the test-refactor-improv branch November 11, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants