Hello, Would a library for mock objects be of interest ? The documentation can be found here : http://mat007.users.sourceforge.net/boost_mock/ An archive is also available for download there : http://sourceforge.net/projects/mat007.u/files/boost-mock.zip It's been converted from turtle (http://turtle.sourceforge.net/) which was mentioned on the mailing-list a couple of times in the past. There is a catch in that it needs Boost.Test from the release branch and doesn't compile with the trunk. The changes are minimal though and I can provide a patch if anyone is interested. Would the library be worth a review ? In the meanwhile I would be highly interested in any feedback ! Thank you, MAT.
Hi, I found that hold_any template operator= is not used during assignment to another hold_any (as intended by its developer). Instead compiler uses self generated version of operator= which doesn't forward to assign(const basic_hold_any&). This leads to memory corruption. The fix is simple - you need to add explicit operator=(const basic_hold_any&). My compiler is gcc 4.4.7 and I use option -std=c++0x Version of boost is 1.53 but I don't see that something changed in 1.54 so it should have the same issue. Best regards, Alexey Tkachenko.
Hi Mathieu,
I've tried Boost.Mock. It works good. I used to use the google test
and the google mock. I think that Boost.Mock provides better support
for templates than them. Also it works well with Boost.Test.
I would be glad if Boost.Mock becomes a part of boost libraries.
Thanks,
Takatoshi
On Tue, Aug 20, 2013 at 4:28 PM, Mathieu Champlon
Hello,
Would a library for mock objects be of interest ?
The documentation can be found here : http://mat007.users.sourceforge.net/boost_mock/ An archive is also available for download there : http://sourceforge.net/projects/mat007.u/files/boost-mock.zip It's been converted from turtle (http://turtle.sourceforge.net/) which was mentioned on the mailing-list a couple of times in the past.
There is a catch in that it needs Boost.Test from the release branch and doesn't compile with the trunk. The changes are minimal though and I can provide a patch if anyone is interested.
Would the library be worth a review ?
In the meanwhile I would be highly interested in any feedback !
Thank you, MAT.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On 19/09/2013 15:51, Takatoshi Kondo wrote:
Hi Mathieu,
I've tried Boost.Mock. It works good. I used to use the google test and the google mock. I think that Boost.Mock provides better support for templates than them. Also it works well with Boost.Test.
I would be glad if Boost.Mock becomes a part of boost libraries.
Hi Takatoshi, Thank you for your feedback ! I'll post on boost-users to try and see if it sparks a bit more interest. Cheers, MAT.
participants (4)
-
Alexey Tkachenko
-
Bjorn Reese
-
Mathieu Champlon
-
Takatoshi Kondo