diff options
author | Jeff McGlynn <jwmcglynn@google.com> | 2018-06-18 10:53:11 -0700 |
---|---|---|
committer | Jeff McGlynn <jwmcglynn@google.com> | 2018-06-18 10:53:11 -0700 |
commit | a37e15d3e186b2377aeeb1bbf8cf62f3615c841c (patch) | |
tree | afaba51791f31f9e40af31ca0b698cdf635c3cc3 /third_party/googletest/googlemock/scripts/generator/README | |
parent | 2b3d25cf8ec91dc5c9b74980a8f8fa9278f0a00e (diff) | |
parent | fa9c8eaf4fe936f35dd95a1eecfbbb228494522d (diff) |
Merge commit 'fa9c8eaf4fe936f35dd95a1eecfbbb228494522d' as 'third_party/googletest'
Diffstat (limited to 'third_party/googletest/googlemock/scripts/generator/README')
-rw-r--r-- | third_party/googletest/googlemock/scripts/generator/README | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/googletest/googlemock/scripts/generator/README b/third_party/googletest/googlemock/scripts/generator/README new file mode 100644 index 0000000..01fd463 --- /dev/null +++ b/third_party/googletest/googlemock/scripts/generator/README @@ -0,0 +1,34 @@ + +The Google Mock class generator is an application that is part of cppclean. +For more information about cppclean, visit http://code.google.com/p/cppclean/ + +The mock generator 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. |