C++ Utilities
4.9.2
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
|
The StandardOutputCheck class asserts whether the standard output written in the enclosing code block matches the expected output. More...
Public Member Functions | |
StandardOutputCheck (const string &expectedOutput) | |
Redirects standard output to an internal buffer. More... | |
StandardOutputCheck (string &&expectedOutput, string &&alternativeOutput) | |
Redirects standard output to an internal buffer. More... | |
StandardOutputCheck (function< void(const string &output)> &&customCheck) | |
~StandardOutputCheck () | |
Asserts the buffered standard output and restores the regular behaviour of std::cout. More... | |
The StandardOutputCheck class asserts whether the standard output written in the enclosing code block matches the expected output.
Definition at line 33 of file argumentparsertests.cpp.
StandardOutputCheck::StandardOutputCheck | ( | const string & | expectedOutput | ) |
Redirects standard output to an internal buffer.
Definition at line 51 of file argumentparsertests.cpp.
StandardOutputCheck::StandardOutputCheck | ( | string && | expectedOutput, |
string && | alternativeOutput | ||
) |
Redirects standard output to an internal buffer.
Definition at line 61 of file argumentparsertests.cpp.
StandardOutputCheck::StandardOutputCheck | ( | function< void(const string &output)> && | customCheck | ) |
StandardOutputCheck::~StandardOutputCheck | ( | ) |
Asserts the buffered standard output and restores the regular behaviour of std::cout.
Definition at line 82 of file argumentparsertests.cpp.