generateGmock

Generate a Google Mock that implements in_c.

Gmock has a restriction of max 10 parameters in a method. This gmock generator has a work-around for the limitation by splitting the parameters over many gmock functions. To fulfill the interface the generator then generates an inlined function that in turn calls the gmocked functions.

See test case class_interface_more_than_10_params.hpp.

@safe
void
generateGmock

Parameters

in_c CppClass

Class to generate a mock implementation of.

hdr CppModule

Header to generate the code in.

Meta