27 #include "Verbosity.h"
42 mLifeCycle(kLifeCycleNew),
43 mStatus(kStatusUnknown),
65 while (*p !=
nullptr) {
66 if (
getName().compareTo((*p)->getName()) < 0)
break;
74 const __FlashStringHelper*
const TEST_STRING = F(
"Test ");
81 printer->print(TEST_STRING);
83 printer->println(F(
" passed."));
86 printer->print(TEST_STRING);
88 printer->println(F(
" failed."));
91 printer->print(TEST_STRING);
93 printer->println(F(
" skipped."));
96 printer->print(TEST_STRING);
98 printer->println(F(
" timed out."));
This file provides overloaded compareXxx(a, b) functions which are used by the various assertXxx(a,...
Various macros to smooth over the differences among the various platforms with regards to their suppo...
static Print * getPrinter()
Get the output printer used by the various assertion() methods and the TestRunner.
Base class of all test cases.
static Test ** getRoot()
Get the pointer to the root pointer.
static const uint8_t kStatusFailed
Test has failed, or fail() was called.
bool isVerbosity(uint8_t verbosity) const
Determine if any of the given verbosity is enabled.
void setStatus(uint8_t status)
Set the status of the test.
static const uint8_t kStatusPassed
Test has passed, or pass() was called.
static const uint8_t kStatusExpired
Test has timed out, or expire() called.
static const uint8_t kStatusSkipped
Test is skipped through the exclude() method or skip() was called.
void resolve()
Print out the summary of the current test.
void setPassOrFail(bool ok)
Set the status to Passed or Failed depending on ok.
const internal::FCString & getName() const
Get the name of the test.
Utility class to hold the Verbosity constants.
static const uint8_t kTestFailed
Print test failed message.
static const uint8_t kTestPassed
Print test passed message.
static const uint8_t kTestSkipped
Print test skipped message.
static const uint8_t kTestExpired
Print test timed out message.
static const uint8_t kTestAll
Print all test status messages.
void print(Print *printer) const
Convenience method for printing an FCString.