mockcpp icon indicating copy to clipboard operation
mockcpp copied to clipboard

Two C/C++ testing tools, mockcpp and testngpp.

Results 34 mockcpp issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/sinojelly/mockcpp/assets/62290095/1c2189dd-edb6-44b8-ae3d-14f290585bf1) ![image](https://github.com/sinojelly/mockcpp/assets/62290095/7d33ae7e-3048-46df-96b2-41fe53435a8c)

I found this problem in my job, to reproduce that problem, the simplified model is as follows: ``` int echo() { return 0; } TEST(ProcStubTest, test1) { MOCKER(echo) .stubs() .will(invoke(+[]{...

returnValue 只能指定返回值类型的, 感觉需要 returnRef

https://github.com/sinojelly/mockcpp/blob/23fa9fbf6fe76c9603068eb1ed8d599cfd1bc228/include/mockcpp/ChainingMockHelper.h#L58 sample code: ``` #include "sample3.h" static unsigned char g_data = 0; void save_data(const Sample3 *s) { g_data = s->a + s->b; } int test(const Sample3 *s) { if ((s->a...

after i mock a c++ class function, my program still go into the function i mocked. but, in the same folder, same CMakeLists.txt, another test_cpp file could mock successful. my...

OS: Ubuntu 18.04 Compiler: Clang15.0.6 Googletest: Googletest 1.13.0 mockcpp: 2.7 > **func.c** > int add(int a, int b){ > return a+b; > } > **func.h** > int add(int a, int...

i try to mock overloaded template functions: template void publish(const boost::shared_ptr& message) const { //do } template void publish(const M& message) const { //do } my code is : MOCKER((void(ros::Publisher::*)(const...

操作系统:Ubuntu 22.10 Linux ubuntu22-xxx 5.19.0-35-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux [root@xxx ~]# cat /etc/os-release PRETTY_NAME="Ubuntu 22.10" NAME="Ubuntu" VERSION_ID="22.10" VERSION="22.10 (Kinetic Kudu)" VERSION_CODENAME=kinetic...

The main branch of mockcpp does not build against the latest version of googletest (v1.13 onwards) when specifying gtest as the unit test framework. The build fails when building `ports/failure/gtest_report_failure.cpp.o`...

except for apache 2.0 ,there is something else ?