Mathieu Champlon

Results 64 comments of Mathieu Champlon

Hi, The documentation has a few examples: http://turtle.sourceforge.net/turtle/reference.html#turtle.reference.creation.constructor Does this answer your question? If not can you provide the code you're trying to compile?

You need an «identifier» (see the documentation section I linked): ``` MOCK_CONSTRUCTOR(MockClass, 2, (ParameterClass1&, ParameterClass2*), MockClassConstructor) ``` To understand how to use an «identifier» later on you can read: *...

Something like ``` MOCK_CLASS(MockClass, BaseClass) { MOCK_STATIC_METHOD(MockClassConstructor, 2, (ParameterClass1&, ParameterClass2*)) MockClass(ParameterClass1&, p1 ParameterClass2* p2) : BaseClass(p1, p2) { MockClassConstructor(p1, p2); } }; ``` ?

Can you show me the code which fails?

You need to set an expectation to define how you expect the constructor to be called, see http://turtle.sourceforge.net/turtle/reference.html#turtle.reference.expectation

Hi Thomas and thanks for the PR ! What is the motivation for those changes exactly ? What would a user test look like e.g. in test_integration.cpp ? Also how...

I'm still struggling to see what a real world use case would look like, would it be something like ``` struct observer { virtual void started( int status ) =...

Hi, If you define MOCK_ERROR_POLICY to use your own policy, there will not be any boost test related code pulled in, besides a convenience class which is just a tool...

That's good to hear! I wouldn't mind moving away from Sourceforge, but I would like to keep the static html documentation as it is for now and would still need...

I made a PR with the Catch integration header, see https://github.com/mat007/turtle/pull/32 The prama and stuff for clang could also be added to turtle, however as this is somewhat separate from...