README 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. The Google Mock class generator is an application that is part of cppclean.
  2. For more information about cppclean, see the README.cppclean file or
  3. visit http://code.google.com/p/cppclean/
  4. cppclean requires Python 2.3.5 or later. If you don't have Python installed
  5. on your system, you will also need to install it. You can download Python
  6. from: http://www.python.org/download/releases/
  7. To use the Google Mock class generator, you need to call it
  8. on the command line passing the header file and class for which you want
  9. to generate a Google Mock class.
  10. Make sure to install the scripts somewhere in your path. Then you can
  11. run the program.
  12. gmock_gen.py header-file.h [ClassName]...
  13. If no ClassNames are specified, all classes in the file are emitted.
  14. To change the indentation from the default of 2, set INDENT in
  15. the environment. For example to use an indent of 4 spaces:
  16. INDENT=4 gmock_gen.py header-file.h ClassName
  17. This version was made from SVN revision 281 in the cppclean repository.
  18. Known Limitations
  19. -----------------
  20. Not all code will be generated properly. For example, when mocking templated
  21. classes, the template information is lost. You will need to add the template
  22. information manually.
  23. Not all permutations of using multiple pointers/references will be rendered
  24. properly. These will also have to be fixed manually.