From a04e3f160cd154a4e6e1ea95033788d59ad806ad Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Thu, 7 Sep 2017 12:26:20 +0200 Subject: [PATCH] Expand docs with 'strict_mock_calling' option --- docs/CMock_Summary.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/CMock_Summary.md b/docs/CMock_Summary.md index 5ce4d4f..b2b2d9d 100644 --- a/docs/CMock_Summary.md +++ b/docs/CMock_Summary.md @@ -541,6 +541,21 @@ from the defaults. We've tried to specify what the defaults are below. * default: :smart +* `:strict_mock_calling`: + CMock always enforces you to specify what to do when a mocked function is called. + If you did not specify any action for the mocked function (no _Expect,_Ignore, ...), + the test will fail when the mocked function got called (because you did not specify an action!). + + You might not want this behaviour. + You might want all calls to mock functions to be 'ignored' at the start of a test case. + You can then define actions for the mock functions you are interested in. + If so, set this to false. + + * default: true + * **note:** + If this option is disabled, the mocked functions will return + a default value (0x0) when called (and only if they have to return something ofcourse). + Compiled Options: -----------------