The purpose of this change is to enable asserting the arguments of a mock function for a specific call count.
Changes
Updated the Mock struct to hold the map of methodName to a slice of calls instead of just a slice of Calls, this will be used to extract the calls for a given methodName easily
Motivation
For instance, when a method is invoked multiple times within the code, and there's a need to verify the arguments for a particular call count, this enhancement proves beneficial.
Summary
The purpose of this change is to enable asserting the arguments of a mock function for a specific call count.
Changes
Updated the Mock struct to hold the map of methodName to a slice of calls instead of just a slice of Calls, this will be used to extract the calls for a given methodName easily
Motivation
For instance, when a method is invoked multiple times within the code, and there's a need to verify the arguments for a particular call count, this enhancement proves beneficial.
with the new API, can assert the argument for a second call like this .
Related issues
N/a