arduino-dataflash
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dummy Namespace Reference

Classes

class  TestNotificationInterface
 Test notification interface. More...
 
class  TestNotification
 Test notification helper. More...
 
class  Infos
 General informations. More...
 
struct  Result
 Test cases result. More...
 
class  Runner
 The unit test manager. More...
 
class  SerialNotifier
 Display test failure informations on the serial line. More...
 
class  Test
 Test interface. More...
 

Functions

bool Eval (char const *expected, char const *value, Dummy::Infos const &infos)
 Check if the provided value is equal to the expected one and notify if the test fails.
 
template<typename T >
bool Eval (T const &expected, T const &value, Dummy::Infos const &infos)
 Check if the provided value is equal to the expected one and notify if the test fails.
 
bool IsEqual (char const *expected, char const *value)
 
bool IsEqual (char *expected, char const *value)
 
bool IsEqual (char *expected, char *value)
 
int Stringify (char value, char *buffer, int bufferLen)
 
int Stringify (int value, char *buffer, int bufferLen)
 
int Stringify (float value, char *buffer, int bufferLen)
 
int Stringify (char const *value, char *buffer, int bufferLen)
 
int Stringify (char *value, char *buffer, int bufferLen)
 
int Stringify (void const *value, char *buffer, int bufferLen)
 
template<typename T >
bool IsEqual (T const &expected, T const &value)
 

Variables

static const char * expectedPrefix = " expected="
 
static size_t expectedPrefixLen = 10
 
static const char * valuePrefix = " value="
 
static size_t valuePrefixLen = 7
 

Function Documentation

template<typename T >
bool Dummy::Eval ( T const &  expected,
T const &  value,
Dummy::Infos const &  infos 
)

Check if the provided value is equal to the expected one and notify if the test fails.

bool Dummy::Eval ( char const *  expected,
char const *  value,
Dummy::Infos const &  infos 
)

Check if the provided value is equal to the expected one and notify if the test fails.

Variable Documentation

const char* Dummy::expectedPrefix = " expected="
static
size_t Dummy::expectedPrefixLen = 10
static
const char* Dummy::valuePrefix = " value="
static
size_t Dummy::valuePrefixLen = 7
static