commit | 8a74e7056dc6e405b1336e047957d143af5b72d9 | [log] [tgz] |
---|---|---|
author | Morten Priess <mtpr@oticon.com> | Thu Jun 28 14:25:57 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Jul 04 08:57:09 2018 -0400 |
tree | 1e4f5146bc758f9ad17a1229c56b3cdd5263eb66 | |
parent | 482865c4c44c3e91f28017e404e94980cca1412c [diff] |
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 <mtpr@oticon.com>