Why gtest is generating Uninteresting mock function call warning?
I’ve written a gtest for a class that uses a Singleton by calling a method of a public member instance that reads a file. I’ve mocked the class of the public member and I am using ON_CALL
to populate the json file.
Unit test of a class calling a singleton in C++ googletest
I have a method of a class that I want to test. The method calls the a singleton method that inside calls a method of the singleton member. I’ve mocked the class of the singleton member in this way: