Skip to content

clean up mocks#74

Closed
chuckha wants to merge 1 commit intokubernetes-sigs:masterfrom
chuckha:mocks
Closed

clean up mocks#74
chuckha wants to merge 1 commit intokubernetes-sigs:masterfrom
chuckha:mocks

Conversation

@chuckha
Copy link
Copy Markdown
Contributor

@chuckha chuckha commented Sep 5, 2018

What do you think of this style of mocking? This avoids the if/else blocks in the mock logic.

Signed-off-by: Chuck Ha chuck@heptio.com

Signed-off-by: Chuck Ha <chuck@heptio.com>
@chuckha chuckha requested a review from vincepri September 5, 2018 19:54
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 5, 2018
@chuckha
Copy link
Copy Markdown
Contributor Author

chuckha commented Sep 5, 2018

there is a better way to do this

@chuckha chuckha closed this Sep 5, 2018
enxebre pushed a commit to enxebre/cluster-api-provider-aws-2 that referenced this pull request Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants