emock icon indicating copy to clipboard operation
emock copied to clipboard

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

Open kiddy818 opened this issue 4 years ago • 1 comments

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 ???

kiddy818 avatar Dec 10 '19 03:12 kiddy818

try to use:

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

orca-zhang avatar Dec 26 '19 02:12 orca-zhang