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