Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kisvakond opened this issue Apr 20, 2023 · 0 comments
Open

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

Kisvakond opened this issue Apr 20, 2023 · 0 comments

Comments

@Kisvakond
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants