ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
684 stars 276 forks source link

Expecting mock parameter to FAIL on certain value(s)? #434

Open Kisvakond opened 1 year ago

Kisvakond commented 1 year ago

Hi I'm new with Cmock and I'm porting existing cmocka test cases for a project.

In cmocka, there is expect_not_value() which allows to check a certain parameter of a mocked call to NOT accept a certain value, e.g. expecting that the mocked function does not get passed a NULL pointer in its (pointer) argument.

Is there an equivalent solution in CMock? So far I can't find any _Expect or _Ignore functions that would offer such option.

Thanks in advance!