Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Ignore method argument #33

Closed
weiwei04 opened this issue Apr 25, 2016 · 1 comment
Closed

Ignore method argument #33

weiwei04 opened this issue Apr 25, 2016 · 1 comment

Comments

@weiwei04
Copy link

In some use case, I don't want the mock matcher to check my arguments value

like google mock

using ::testing::_;
...
// Expects the turtle to move forward.
EXPECT_CALL(turtle, Forward(_));
@dsymonds
Copy link
Contributor

That's what gomock.Any() is for.

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

No branches or pull requests

2 participants