AxUnit supports mocking of non-overloaded and overloaded functions. Whereby the mocking of overloaded functions increases the complexity of a mock setup. Therefore AxUnit guides you with the following warnings and errors:
-
Not all of mockee function overloads have corresponding overload of mock function.is shown aswarningwhen not all overloads of a function are mocked. AxUnit does not enforce writing mocks for all of overloads, but warns that it could lead to unexpected behavior at runtime. -
There are no mock functions matching the corresponding mockee signatureis shown aserrorwhen AxUnit detected that the mock setup refers to amockfunction, that has no correspondingmockeefunction. A common mistake could be a difference in name of variables or their types. -
Expect name of existing functionis shown aserrorwhen either themockor themockeefunction could not be found in the program. Check if namespaces and function names are written correctly!