-
-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
CallBase
regression with explicitly implemented interface metho…
…ds (#558) * Add failing regression test which shows that `CallBase` no longer works for explicitly implemented interface methods (which appear e. g. when `mock.As<TInterface>()` is used). * Fix `CallBase` for explicit interface method impls. While we could just revert 5837c53, that would reintroduce a slow and hard to understand multi-line `if` condition. Let's instead rewrite the original conditions such that no superfluous checks are performed, and such that fast checks are performed first. (Notably, checking whether a type is an interface is faster than checking whether it is a class.) * Update the changelog
- Loading branch information
Showing
3 changed files
with
72 additions
and
3 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
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