Skip to content

Tag: googletest

Unit test a variable for both true and false

I’m working on a C++ production code here with googletest/googlemock. I’ve stumble upon this idea when working with one of the function in A.cpp: where the header contains: I am stuck in a way that I can only test the function for an expected output of true or an input of false like so: Is there a…