AUnit
1.7.1
Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test.
|
Utility class that provides a level of indirection to the Print class where test results can be sent. More...
#include <Printer.h>
Static Public Member Functions | |
static Print * | getPrinter () |
Get the output printer used by the various assertion() methods and the TestRunner. More... | |
static void | setPrinter (Print *printer) |
Set the printer. | |
Utility class that provides a level of indirection to the Print class where test results can be sent.
By default, the Print object will be the Serial object. This can be changed using the setPrinter() method.
This class assumes that it will be used after all static initializations have finished. Because static initialization ordering is undefined, if this utility is used during static initialization, the behaviour is undefined.
|
inlinestatic |
Get the output printer used by the various assertion() methods and the TestRunner.
The default is the predefined Serial object. Can be changed using the setPrinter() method.