Skip to content

Conversation

@sambavos
Copy link

@sambavos sambavos commented May 7, 2025

Variadic functions can't really be used withtpp.Expects because of either a mismatch in number of arguments when setting up the expectations, or a mismatch in number of arguments with the actual call (e.g. in the case where no variadic args are provided)

Work left to do:

Actually try to solve these cases without weakening checks on non-variadic funcitons

@mattavos
Copy link
Owner

mattavos commented Oct 8, 2025

@sambavos -- interested to see if there's still something in this vicinity that's desired after 43afa83 !

@sambavos
Copy link
Author

Hmm I have a feeling that it's not needed any more, will try to find the example I was struggling with.

If I find it, i'll write up some tests in a PR for this repo to formalise how you can do it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants