What's the Boost test framework's equivalence of std::cout?
-
25-05-2021 - |
Question
I understand that in my unit test I should do
BOOST_TEST_MESSAGE("message");
instead of
std::cout << "message";
but what if for a function that's expecting std::ostream&
?
so instead of
hexdump(std::cout, buffer, length);
what should I replace std::cout
with?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow