Awesome I'm glad to hear you got np_mock() to work for you. For non-public methods the right thing to do would be np_mock_by_name() but that probably won't handle actual C++ method signatures. You might be able to pass the mangled name. I haven't tried. On Sat, Oct 14, 2017 at 12:50 Rohith Jayakumar rojayaku@users.sf.net wrote: Hi Greg, Thanks for the suggestion, by providing the address of the functions prefixed with the class name scope resolution operator, i was able to mock the public function....
Without seeeing an actual test case, here's what I think is going on. The first argument to np_mock() needs to be the address of withinAAAMethod(). Instead you're calling the method and passing its return value. Your compiler is not complaining because np_mock() is actually a macro which casts its first argument thus defeating type checking. On Thu, Oct 12, 2017 at 03:38 Rohith Jayakumar rojayaku@users.sf.net wrote: Hi Greg, Thanks for your response. I tried mocking one of the member functions which...
Hi RJ, Thanks for looking into NovaProva. To answer your questions: On 11 October 2017 at 06:01, Rohith Jayakumar rojayaku@users.sf.net wrote: Hi, I am working on a C++ project and in need of performing unit testing for my C++ class member functions using NovaProva, could you please let me know if there are sample examples on how we can use NovaProva for testing C++ class functions I haven't written any such examples. If there were examples they would be very similar to the C examples, particularly...
G'day, The Mac OS X port of NovaProva is ready for folks to try it out. I've added...
Sent from my iPhone On Aug 16, 2015, at 2:00, "Greig" greighamilton@users.sf.net...
...and to be clear, I'm eagerly awaiting your patch. On 16 August 2015 at 07:44,...
G'day, Nope, no internal documentation - sorry. I just pushed a commit for an error...
Curious. I would expect that to work. Does the tnmemleak regression test pass? How...