We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know quite how I would want to handle mocking of varargs yet, but I suspect it would be possible. Perhaps a varargs combinator:
when(mock_func1, arg_that(is_the_int(5)), varargs_that(is_the_string("foo"), is_the_int(4), NULL));
Plus some way to package varargs from a mock.
va_start(__pfstest_ap, __pfstest_mock_arg_0); [...] the_varargs(__pfstest_ap) [...] va_end(__pfstest_ap);
I haven't tried these or thought through whether they are actually implementable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I don't know quite how I would want to handle mocking of varargs yet, but I suspect it would be possible. Perhaps a varargs combinator:
when(mock_func1, arg_that(is_the_int(5)), varargs_that(is_the_string("foo"), is_the_int(4), NULL));
Plus some way to package varargs from a mock.
I haven't tried these or thought through whether they are actually implementable.
The text was updated successfully, but these errors were encountered: