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

fix: uses interface instead of T struct #2

Merged
merged 1 commit into from
Feb 9, 2019
Merged

fix: uses interface instead of T struct #2

merged 1 commit into from
Feb 9, 2019

Conversation

bartoszmajsak
Copy link
Contributor

@bartoszmajsak bartoszmajsak commented Feb 8, 2019

Thanks for this handy utility.

As testing.T is only used to report .Error we can rely on TestReporter interface instead. This approach allows easy integration with other testing frameworks such as Ginkgo.

As testing.T is only used to report .Error there is no need for such
coupling. Using interface instead allow easy integration with other
testing frameworks such as Ginkgo. Other libraries such as gomock and
testify follows the same approach.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 77.551% when pulling 486162a on bartoszmajsak:testing_struct into dbf9534 on Flaque:master.

@Flaque
Copy link
Owner

Flaque commented Feb 9, 2019

SGTM, thanks 👍

@Flaque Flaque merged commit fc4d33c into Flaque:master Feb 9, 2019
@bartoszmajsak bartoszmajsak deleted the testing_struct branch February 10, 2019 14:40
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.

3 participants