[mockitopp] r151 committed - Edited wiki page CommonIssues through web user interface.

2 views
Skip to first unread message

mock...@googlecode.com

unread,
Apr 23, 2013, 4:21:38 PM4/23/13
to mockit...@googlegroups.com
Revision: 151
Author: plazt...@gmail.com
Date: Tue Apr 23 13:21:36 2013
Log: Edited wiki page CommonIssues through web user interface.
http://code.google.com/p/mockitopp/source/detail?r=151

Modified:
/wiki/CommonIssues.wiki

=======================================
--- /wiki/CommonIssues.wiki Tue Apr 23 11:57:51 2013
+++ /wiki/CommonIssues.wiki Tue Apr 23 13:21:36 2013
@@ -1,14 +1,14 @@
#summary Common Issues and Questions when using Mockitopp
= Introduction =

-mockitopp does have a built-in limit for the maximum number of methods it
allows on a mocked class, as well as a limit on the number of arguments
allowed on a given mocked class' method(s). These are due to the fact that
mockitopp uses the m4 macro language to generate these aspects of the
framework. The number is a relatively constrained default of 100 virtual
methods and 20 arguments per method.
+Mockitopp is a very powerful framework that uses some advanced (but
portable!) C++ techniques to provide its features. Sometimes when using
mockitopp, you may run into template-oriented compile issues, or runtime
crashes, that are scary looking. Don't Panic!

-If you know that you will be mocking pure virtual classes with more than
100 methods, or mocking methods with more than 20 arguments, you should
increase these values:
+= Increasing the maximum mockable methods and arguments =

+mockitopp does have a built-in limit for the maximum number of methods it
allows on a mocked class, as well as a limit on the number of arguments
allowed on a given mocked class' method(s). These are due to the fact that
mockitopp uses the m4 macro language to generate these aspects of the
framework. The number is a relatively constrained default of 100 virtual
methods and 20 arguments per method.

-= Increasing the maximum mockable methods and arguments =
+If you know that you will be mocking pure virtual classes with more than
100 methods, or mocking methods with more than 20 arguments, you should
increase these values:

-Add your content here. Format your content with:
* install 'scons' for your platform
* edit the SConstruct file in mockitopp's source directory
* increase the MOCKITOPP_MAX_VIRTUAL_FUNCTIONS to the number of methods
(plus some pasdding) on the largest pure virtual class you are expecting to
mock
Reply all
Reply to author
Forward
0 new messages