Class ConsoleOutput¶
Defined in File ConsoleOutput.hpp
Inheritance Relationships¶
Base Type¶
public mu::tiny::test::Output(Class Output)
Class Documentation¶
-
class ConsoleOutput : public mu::tiny::test::Output¶
[source] Writes test output to stdout using printf.
This is the default Output used by CommandLineRunner. It relies on the replaceable Output::stdout_, Output::fopen_, Output::fputs_, and Output::fclose_ function pointers, allowing I/O to be redirected in tests.
Public Functions
-
virtual void print_buffer(const char *s) override¶
Write
sto the console via the fputs_ function pointer.- Parameters:
s – Null-terminated string to write.
-
ConsoleOutput(const ConsoleOutput&) = delete¶
-
ConsoleOutput &operator=(const ConsoleOutput&) = delete¶
-
virtual void print_buffer(const char *s) override¶