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

how to use .after(const InvocationMockerNamespace& ns, const std::string& name) #6

Open
kiddy818 opened this issue Dec 10, 2019 · 1 comment

Comments

@kiddy818
Copy link

kiddy818 commented Dec 10, 2019

if I have a mock like this:
EMOCK(&CLASS_NAME_A::FUNCTION_NAME_A).expects(once()).id("1");

how can i ref to it from another EMOCK?
EMOCK(&CLASS_NAME_B::FUNCTION_NAME_B).expects(once()).after(???, "1").will(ignoreReturnValue());

what should i fill for ???

@orca-zhang
Copy link
Member

try to use:

EMOCK(&CLASS_NAME_B::FUNCTION_NAME_B)
    .expects(once())
    .after("1")
    .will(ignoreReturnValue());

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

No branches or pull requests

2 participants