tests: ztest: ztest_mock to support multiple calls to same mock
tests: ztest: ztest_mock to support multiple calls to same mock

Updated ztest_mock.c to support multiple calls to same mock function
within a single function under test. This allows sequencing mock
return values for improved decision coverage in a test, or simply
when a given function under test calls the same function more than
once with different parameters, or different return values.

Signed-off-by: Morten Priess <eeac701aa7fa64292a00ac226283761853032460@oticon.com>

explora26/zephyr,punitvara/zephyr,finikorg/zephyr,Vudentz/zephyr,kraj/zephyr,explora26/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,Vudentz/zephyr,nashif/zephyr,explora26/zephyr,galak/zephyr,nashif/zephyr,ldts/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,Vudentz/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,galak/zephyr,Vudentz/zephyr,finikorg/zephyr,kraj/zephyr,punitvara/zephyr,kraj/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,Vudentz/zephyr,kraj/zephyr,explora26/zephyr,ldts/zephyr,galak/zephyr,explora26/zephyr,nashif/zephyr,kraj/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr