mockitopp icon indicating copy to clipboard operation
mockitopp copied to clipboard

Simple mocking for C++

Results 10 mockitopp issues
Sort by recently updated
recently updated
newest added

``` 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...

enhancement

``` 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() &&...

enhancement

``` 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...

enhancement

``` 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...

bug

``` 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...

enhancement

``` 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...

question

``` 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:...

bug

``` 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...

bug

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.

question