chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
+1 vote


I get the following error on runtime

It looks like type mock needs ISOLATOR_TESTABLE for each function in a class

please advise

The function 'Person::getName' couldn't be found. If the method is not called in the code under test it will be optimized away.Remove any inline keywords, and Add ISOLATOR_TESTABLE to the method.

asked by IlanG (4.8k points)

1 Answer

0 votes


Try adding in the test initialization the lines:


   MockC dummy; // To resolve this issue

   C dummy; // To resolve ISOLATOR_INVOKE_CONSTRUCTOR issue


answered by David (1.9k points)