mockitopp
mockitopp copied to clipboard
Simple mocking for C++
``` What is the expected output? What do you see instead? We have a mixed C/C++ codebase, with lots of C-style global functions. Currently, we have to use cgreen's link-time...
information on missing implementation is not actionable for developers without serious debugger time
``` What steps will reproduce the problem? 1. call a mocked function one too many times on a line with multiple mocked calls mock_object mock; mock_object other_mock; if (mock.getInstance().f() &&...
``` What is the expected output? What do you see instead? mock.verify() should throw a std::exception-derived exception, with what() being populated with information about exactly what missing. that way, it...
``` What steps will reproduce the problem? Stub a function on a mock_object N times with overloaded return values. Call the function on the mock_object's instance (getInstance()) N times. Stub...
``` Currently MockitoPP only supports mocking classes that have a single virtual table. Determining a classes layout pseudo-dynamically is nontrivial since there is no way at compile time to determine...
``` Steps to reproduce the problem: 1. Get to the main page of project 2. Try to understand what to do to start working with mockitopp On the main page...
``` Hi, I am using "exactly" behavior as seen in this page: https://code.google.com/p/mockitopp/source/browse/trunk/test/src/test_verify.cpp ?r=138 My code: ASSERT_TRUE(mock_splice(&TestInterface::kill).atLeast(1); Following error occurs: error: 'mockitopp::detail::dynamic_vfunction_base' is not an accessible base of 'mockitopp::detail::dynamic_vfunction' /usr/include/mockitopp/detail/stubbing/dynamic_vfunction.hpp:43:15:...
``` it seems that they changed the member function pointer internals compiler error: C:\dev\st_trunk\OpenAgent\BuildUtilities\Cpp\include\mockitopp/detail/stubbing/p roxy_vfunction.hpp(142): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall Communicator::CRequestHandler::* )(Communicator::CCommunicatorImpl &)' to 'void *(__thiscall...
Hello. My development enviorment is ubuntu 18.04 and g++ version is 7.4.0 In this situation, could I use it on my PC? Thank you.