Closed hanishgopi closed 1 year ago
I think maybe you can use return string value mocker like this:
TEST(test_func_mocker)
{
MOCKER(Interface::func)
.expects(once())
.will(returnValue("OK"));
ASSERT_STREQ("OK", Interface::func());
GlobalMockObject::verify();
}
Please leave a syntax example to returnStringValue using MOCKER assertion. if not possible using MOCKER assertion if there is any other way please let me know with a sample example.