ArduinoUnit 2.0
 All Classes Files Functions Variables Macros
Public Member Functions | List of all members
TestOnce Class Referenceabstract

#include <ArduinoUnit.h>

Inheritance diagram for TestOnce:
Test

Public Member Functions

 TestOnce (const __FlashStringHelper *name)
 
 TestOnce (const char *name)
 
void loop ()
 
virtual void once ()=0
 
- Public Member Functions inherited from Test
void pass ()
 
void fail ()
 
void skip ()
 
virtual void setup ()
 
 Test (const __FlashStringHelper *_name, uint8_t _verbosity=TEST_VERBOSITY_TESTS_ALL|TEST_VERBOSITY_ASSERTIONS_FAILED)
 
 Test (const char *_name, uint8_t _verbosity=TEST_VERBOSITY_TESTS_ALL|TEST_VERBOSITY_ASSERTIONS_FAILED)
 

Additional Inherited Members

- Static Public Member Functions inherited from Test
static uint16_t getCurrentPassed ()
 
static uint16_t getCurrentSkipped ()
 
static uint16_t getCurrentFailed ()
 
static uint16_t getCurrentCount ()
 
static void include (const char *pattern)
 
static void exclude (const char *pattern)
 
static void run ()
 
template<typename T >
static bool assertion (const __FlashStringHelper *file, uint16_t line, const __FlashStringHelper *lhss, const T &lhs, const __FlashStringHelper *ops, bool(*op)(const T &lhs, const T &rhs), const __FlashStringHelper *rhss, const T &rhs)
 
- Public Attributes inherited from Test
uint8_t state
 
String name
 
uint8_t verbosity
 
- Static Public Attributes inherited from Test
static uint8_t max_verbosity = TEST_VERBOSITY_ALL
 
static uint8_t min_verbosity = TEST_VERBOSITY_TESTS_SUMMARY
 
static const uint8_t UNSETUP = 0
 
static const uint8_t LOOPING = 1
 
static const uint8_t DONE_SKIP = 2
 
static const uint8_t DONE_PASS = 3
 
static const uint8_t DONE_FAIL = 4
 
static Print * out = &Serial
 
static Testcurrent = 0
 

Detailed Description

Class for creating a once-only test. Test::run() on such a test calls Test::setup() once, and (if not already resolved from the setup(), calls Test::once()

Member Function Documentation

void TestOnce::loop ( )
virtual

Run a test. Test::loop() will be called on each Test::run() until a pass(), fail() or skip().

Implements Test.


The documentation for this class was generated from the following files: