-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fn: generalize type of t in UnwrapOrFail
It is needed to pass other types satisfying needed interfaces to methods Option.UnwrapOrFail and Result.UnwrapOrFail. An example of such a type is *lntest.HarnessTest. It embeds *testing.T and has all the methods but can't be passed directly as *testing.T, but can be passed now as an instance of Testing interface.
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters