Closed FranckRJ closed 2 years ago
I'm not completely sure about the name of SpyWithoutVerify()
, maybe it should be called SpyForwardArgs()
, but then it isn't obvious that the function "disable" verification, so I don't know.
After a bit of reflection I think I'll let it like that. If the name is proven to be bad it can always change, the old one will just stay here, deprecated.
Now
Spy()
copy arguments instead of forwarding them to the original method, so the arguments can be stored forVerify()
ing them later. If an argument is move-only, the compiler should give a somewhat nice error message:As the error message said, there is a new function
SpyWithoutVerify()
that behave as the oldSpy()
, it forward the arguments, thus making them impossible to check with theVerify()
function later.Should fix #191 and #205.