mavtables
0.2.1
MAVLink router and firewall.
|
#include <common.hpp>
Public Member Functions | |
MockCErr () | |
~MockCErr () | |
std::string | buffer () |
void | reset () |
RAII class to replace std::cerr with a mocked buffer.
Definition at line 94 of file common.hpp.
|
inline |
Replace std::cerr with this mock.
Definition at line 99 of file common.hpp.
|
inline |
Restore std::cerr.
Definition at line 106 of file common.hpp.
|
inline |
Return the contents of the mocked std::cerr buffer as a string.
Definition at line 114 of file common.hpp.
|
inline |
Erase the mocked buffer.
Definition at line 120 of file common.hpp.