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...
Oh, if I read all my pending email it seems you already worked that out :) Greg....
The procedure is on github, fork the novaprova/novaprova repo. This creates a repo...
G'day, Yes, I see that would be inconvenient :) I think the sensible thing would...
G'day, I built a test case and it fails in exactly the way you describe. There's...
So let's see if I understand. Mocking a function in a shared library works if you...
Sent from my iPhone On Aug 5, 2015, at 21:38, "Greig" greighamilton@users.sf.net...
Ok, one step at least :) If install_intercept is being called then the mock is being...
G'day, On 4 August 2015 at 21:56, Greig greighamilton@users.sf.net wrote: I've been...
Thanks for reading the docs :) On 1 August 2015 at 02:30, Greig greighamilton@users.sf.net...
G'day, For the upcoming 1.4 release of NovaProva, I've written an expanded user manual....
Awesome! I should ask my boss about LCA :) Sent from my iPhone On Oct 14, 2014, at...
G'day, I think I've fixed this problem, can you try the latest in git? On 25 September...
G'day, So that's a 64 bit executable and I don't currently have access to either...
G'day, On 21 September 2014 15:13, bonybrown bonybrown@users.sf.net wrote: Result...
G'day, So what happens when you do "make check" in the tests/ directory? Can you...
G'day, Ok, I think I know what's happened here. This crash happens when NP starts...
G'day, On 8 September 2014 09:35, Greg Banks gnb@fmeh.org wrote: No worries. I'll...
G'day, No worries. I'll take a look later this week when I'm back from my trip. Greg....
G'day, On 7 September 2014 18:31, bonybrown bonybrown@users.sf.net wrote: Hi, I just...
ggcov 0.9 released
G'day, I'm pleased to announce that binary packages of NovaProva for multiple Linux...