You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TEST_F(TestSuite3, T2)
{
Sample3 t = {1, 2};
MOCKER(save_data).stubs().with(eq((const Sample3*)&t));
auto ret = test(&t);
EXPECT_EQ(ret, 0);
}
test result:
[ RUN ] TestSuite3.T2
unknown file: Failure
C++ exception with description "
=====================================
Unexpected invocation: the invocation cannot be found in allowed invoking list.
Invoked: save_data((Sample3 const*)0x7fff442b0630)
Allowed:
method(save_data)
.stubs()
.invoked(0)
.with(eq(unique_ptr (Sample3 const*)0x7fff442b0630));
=====================================
" thrown in the test body.
The text was updated successfully, but these errors were encountered:
mockcpp/include/mockcpp/ChainingMockHelper.h
Line 58 in 23fa9fb
sample code:
testcase:
test result:
The text was updated successfully, but these errors were encountered: