ExpectAnyArgs should not be generated for functions with no arguments (#201)

This commit is contained in:
Mark VanderVoord
2019-10-23 15:51:22 -04:00
parent b37b3cd86b
commit 741b1067a3
3 changed files with 34 additions and 22 deletions
+3 -3
View File
@@ -117,11 +117,11 @@ ExpectAnyArgs:
This behaves just like the Expects calls, except that it doesn't really
care what the arguments are that the mock gets called with. It still counts
the number of times the mock is called and it still handles return values
if there are some.
if there are some. Note that an ExpectAnyArgs call is not generated for
functions that have no arguments, because it would act exactly like the existing
Expect and ExpectAndReturn calls.
* `void func(void)` => `void func_ExpectAnyArgs(void)`
* `void func(params)` => `void func_ExpectAnyArgs(void)`
* `retval func(void)` => `void func_ExpectAnyArgsAndReturn(retval_to_return)`
* `retval func(params)` => `void func_ExpectAnyArgsAndReturn(retval_to_return)`