Closed Kangaroux closed 5 years ago
I didn't include it as part of the PR but I did test the case where a method has no arguments. If you create a new interface with a no-arg method and generate a mock for it, you can verify that there is no reference to callArgs
or a Calls()
method
@hexdigest Pushed changes
Thanks @Kangaroux ! I'll tag it and release a new version soon.
This adds a
Calls()
method to the method mock object which returns a list of arguments the method was called with.Calls()
is guaranteed to never return nil (will return an empty list if no calls are made)Calls()
method generated