After reading the google test / mock documentation, I am still unclear about the best approach to take in a certain case. Lets say I have a class A:
class A
{
public:
virtual bool start(...);
private:
virtual bool func_a(...);
virtual bool func_b(...);
virtual bool func_c(...);
virtual bool func_d(...);
};
I have created a mock of class A and tested code that uses class A by calling class A’s start function. The start function has some complex logic that either calls func_a, func_b, func_c, or func_d. What’s the best approach to testing the complex logic in class A’s start function in this case?