umock-c icon indicating copy to clipboard operation
umock-c copied to clipboard

umock_c_get_expected_calls and umock_c_get_actual_calls should return some "collection" of calls

Open anporumb opened this issue 7 years ago • 1 comments

umock_c_get_actual_calls should return some "query-able" collection of calls.

That way, in the scenario of "was function X called?" (notice: the scenario is missing any sort of ordering or other functions being called) there would be some answer.

Right now, the only verification of umock_c is "did all functions match in order?" (by means of ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls()); that actually compares 2 strings).

Having a collection of calls exposed would mean the user can better decide when "my test failed". Sometimes all the user cares is "was this callback called with these parameters?" disregarding any other function calls.

anporumb avatar Feb 26 '18 17:02 anporumb

shameless bump

anporumb avatar Mar 07 '18 16:03 anporumb