[Mockpp-commits] mockpp/mockpp/docs/en faq.docbook,1.8,1.9
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-08-01 18:21:39
|
Update of /cvsroot/mockpp/mockpp/mockpp/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21387/mockpp/docs/en Modified Files: faq.docbook Log Message: another question Index: faq.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/faq.docbook,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- faq.docbook 24 Jul 2005 12:54:37 -0000 1.8 +++ faq.docbook 1 Aug 2005 18:21:12 -0000 1.9 @@ -198,6 +198,24 @@ <qandaentry> <question> + <para>Is it possible to mock a function with a default parameter?</para> + </question> + + <answer><para>Due to the internal macro structure it is not possible to add default parameters in + mock methods. Providing this possibility would require another set of macros which is + not reasonable.</para> + + <para>But you don't actually need it. A mock object is derived from a more or less abstract base class. + Since default values should never change, the according default value is also in the base + class, even it is pure virtual. The production code should only know about the base class which + contains the default value, so all you need is already available.</para> + </answer> + + </qandaentry> + + <qandaentry> + + <question> <para>Where can I ask a question regarding &mockpp;?</para> </question> |