func MatchedBy

Description

MatchedBy can be used to match a mock call based on only certain properties
from a complex struct or some calculation. It takes a function that will be
evaluated with the called argument and will return true when there's a match
and false otherwise.