GoogleTest - Google Testing and Mocking Framework (grpc protobuff依赖) https://google.github.io/googletest/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
kosak 8e838ce0fd Adding support to gmock_gen for nested templates. 10 years ago
..
cpp Adding support to gmock_gen for nested templates. 10 years ago
LICENSE Renames the license files. 14 years ago
README Makes all container matchers work with (possibly multi-dimensional) native arrays; makes Contains() accept a matcher; adds Value(x, m); improves gmock doctor to diagnose the Type in Template Base disease. 16 years ago
README.cppclean Initial drop of Google Mock. The files are incomplete and thus may not build correctly yet. 17 years ago
gmock_gen.py Makes the mock generator work with python2.3.5, which comes with Mac OS X Tiger. 16 years ago

README


The Google Mock class generator is an application that is part of cppclean.
For more information about cppclean, see the README.cppclean file or
visit http://code.google.com/p/cppclean/

cppclean requires Python 2.3.5 or later. If you don't have Python installed
on your system, you will also need to install it. You can download Python
from: http://www.python.org/download/releases/

To use the Google Mock class generator, you need to call it
on the command line passing the header file and class for which you want
to generate a Google Mock class.

Make sure to install the scripts somewhere in your path. Then you can
run the program.

gmock_gen.py header-file.h [ClassName]...

If no ClassNames are specified, all classes in the file are emitted.

To change the indentation from the default of 2, set INDENT in
the environment. For example to use an indent of 4 spaces:

INDENT=4 gmock_gen.py header-file.h ClassName

This version was made from SVN revision 281 in the cppclean repository.

Known Limitations
-----------------
Not all code will be generated properly. For example, when mocking templated
classes, the template information is lost. You will need to add the template
information manually.

Not all permutations of using multiple pointers/references will be rendered
properly. These will also have to be fixed manually.