Is there a way to assert double values of containers in gtest using DoubleNear matcher? There is also a CombiningMatcher<T> in the codebase but ...
Is there a way to assert double values of containers in gtest using DoubleNear matcher? There is also a CombiningMatcher<T> in the codebase but ...
I was checking the quickstarter to use googletest with cmake. I was wondering how I should modify the CMakeLists.txt they provide (given below) in ord ...
I am new to gtest/gmock. I am trying to implement unit testing for C++ Program.but when i try to compile it. i got linking error with gmock. this spec ...
I have never worked with CMake before, so please forgive any rookie mistakes. Most of the following working frame has been given to me by my project g ...
my code is structured like this I wanted to create a gtest mock for this but I'm running into an issue... How do I implement a mock like this? I ...
. Answers to this question are eligible for a +50 reputation bounty. Th ...
I have two classes, Server and Client, each with their own mock class and has a getClients and getServer method respectively (the actual classes are m ...
I am using address sanitizers in conjunction with gtest. I have a test that which references a unique_ptr that is null and subsequently fails. Edit: ...
I'm trying to use bazel for my project. I'm following the tutorial (http://google.github.io/googletest/quickstart-bazel.html). All the files are di ...
I'm creating a TYPED_TEST_SUITE and I want to get count of elements in ::testing::Types. The reason is to perform a static assertion, so I can be sure ...
My situation is similar to dynamic_cast<B *> (&a) gives a warning. I have one base and one derived class: struct Base { virtual ~Base() ...
I am having trouble in mocking the following method. I have this code: When I replace VRECT with a simple data type int then everything works just ...
I have a class derived from ::testing::Test and several fixtures in it. I've also reimplemented SetUpTestCase method which must start the side applica ...
How to get the result of EXPECT_EXIT() in gtest? I want to do something according to the results of EXPECT_EXIT. For example: ...
I have a question regarding the parameterized tests from the Google test framework. What I have is a class under test, what I want to test with this s ...
I created an ATL COM DLL. I now have to unit test the methods defined in the COM interface of the DLL. I created a console application "tester.exe" an ...
The generally used approach of wrapping free C functions in a "Mockinterface" class with a child class "Mock"(that calls MOCK_METHOD) results in the n ...
there is some enum class like the class seems like I wanto use it in gtest which is how can i generate combinations of all possible template ...
I am attempting at having a MOCK_METHOD BarClass::Bar throw an exception however I seem to be running into a following error error: call to implic ...
I am trying to mock a method Handler::Foo to throw an exception that takes in two objects as parameters i.e SomeStruct, SomeClass. The former is creat ...