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
in { assert (in_c.isVirtual); }

Parameters

in_c
Type: CppClass

Class to generate a mock implementation of.

hdr
Type: CppModule

Header to generate the code in.

Meta