Mocking problem with function on const object
Mocking and unit testing tool for C and C++
Brought to you by:
pognibene
Hello Pascal,
We have a class that contains methods that does not modify the state of the object itself (eg: a getter). Those methods are method are declared with the const keyword at the end.
For instance:
class foo{
void bar() const;
}
The mock which is generated does not contains const keyword at the end of the declaration.
void foo::bar ()
{
...
}
Const keyword is missing at the end.
Can you provide a fix?
Thanks a lot.
Laurent
Anonymous
Hi Laurent,
Thank's for reporting this problem. I tried to reproduce it using opmock 0.9.2 (latest Java version) and I can't see this behavior. But in opmock 2.x I indeed see this regression, I'll have a stab asap.
Pascal
Last edit: pogn 2013-04-11