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

More gracefully make calls to Helper() #21

Merged
merged 1 commit into from
Jan 10, 2020
Merged

Conversation

kinbiko
Copy link
Owner

@kinbiko kinbiko commented Jan 10, 2020

Instead of checking if the printer adheres to the testing.tt interface
throughout, wrap any non-matching types in a utility with a NOOP
Helper() implementation.

Removes the unnecessary exposure of the provided Printer in the
Asserter.
In the strictest sense, this change isn't backwards compatible, in that
Asserter no longer exposes a Printer field.
If for some obscure reason this affects you, you can replace all calls
to ja.Printer with the type that you passed in to New().

Instead of checking if the printer adheres to the testing.tt interface
throughout, wrap any non-matching types in a utility with a NOOP
Helper() implementation.

Removes the unnecessary exposure of the provided Printer in the
Asserter.
In the strictest sense, this change isn't backwards compatible, in that
Asserter no longer exposes a Printer field.
If for some obscure reason this affects you, you can replace all calls
to ja.Printer with the type that you passed in to New().
@kinbiko kinbiko merged commit d457518 into master Jan 10, 2020
@kinbiko kinbiko deleted the more-graceful-helper branch January 10, 2020 15:17
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.

1 participant