CryptoAuthLib
Atmel CryptoAuthentication Library
unity_fixture.h File Reference

Go to the source code of this file.

Macros

#define TEST_GROUP(group)   static const char* TEST_GROUP_ ## group = #group
 
#define TEST_SETUP(group)
 
#define TEST_TEAR_DOWN(group)
 
#define TEST(group, name)
 
#define IGNORE_TEST(group, name)
 
#define DECLARE_TEST_CASE(group, name)   void TEST_ ## group ## _ ## name ## _run(void)
 
#define RUN_TEST_CASE(group, name)
 
#define TEST_GROUP_RUNNER(group)
 
#define RUN_TEST_GROUP(group)
 
#define UT_PTR_SET(ptr, newPointerValue)    UnityPointer_Set((void**)&ptr, (void*)newPointerValue)
 
#define TEST_ASSERT_POINTERS_EQUAL(expected, actual)    TEST_ASSERT_EQUAL_PTR(expected, actual)
 
#define TEST_ASSERT_BYTES_EQUAL(expected, actual)    TEST_ASSERT_EQUAL_HEX8(0xff & (expected), 0xff & (actual))
 
#define FAIL(message)    TEST_FAIL_MESSAGE((message))
 
#define CHECK(condition)    TEST_ASSERT_TRUE((condition))
 
#define LONGS_EQUAL(expected, actual)    TEST_ASSERT_EQUAL_INT((expected), (actual))
 
#define STRCMP_EQUAL(expected, actual)    TEST_ASSERT_EQUAL_STRING((expected), (actual))
 
#define DOUBLES_EQUAL(expected, actual, delta)    TEST_ASSERT_FLOAT_WITHIN (((expected), (actual), (delta))
 

Functions

int UnityMain (int argc, const char *argv[], void(*runAllTests)(void))
 
void UnityMalloc_MakeMallocFailAfterCount (int count)
 

Macro Definition Documentation

#define CHECK (   condition)    TEST_ASSERT_TRUE((condition))
#define DECLARE_TEST_CASE (   group,
  name 
)    void TEST_ ## group ## _ ## name ## _run(void)
#define DOUBLES_EQUAL (   expected,
  actual,
  delta 
)    TEST_ASSERT_FLOAT_WITHIN (((expected), (actual), (delta))
#define FAIL (   message)    TEST_FAIL_MESSAGE((message))
#define IGNORE_TEST (   group,
  name 
)
Value:
void TEST_ ## group ## _ ## name ## _(void); \
void TEST_ ## group ## _ ## name ## _run(void); \
void TEST_ ## group ## _ ## name ## _run(void) \
{ \
UnityIgnoreTest("IGNORE_TEST(" #group ", " #name ")", TEST_GROUP_ ## group, #name); \
} \
void TEST_ ## group ## _ ## name ## _(void)
void UnityIgnoreTest(const char *printableName)
Definition: unity_fixture.c:117
#define LONGS_EQUAL (   expected,
  actual 
)    TEST_ASSERT_EQUAL_INT((expected), (actual))
#define RUN_TEST_CASE (   group,
  name 
)
Value:
{ DECLARE_TEST_CASE(group, name); \
TEST_ ## group ## _ ## name ## _run(); }
#define DECLARE_TEST_CASE(group, name)
Definition: unity_fixture.h:52
#define RUN_TEST_GROUP (   group)
Value:
{ void TEST_ ## group ## _GROUP_RUNNER(void); \
TEST_ ## group ## _GROUP_RUNNER(); }
#define STRCMP_EQUAL (   expected,
  actual 
)    TEST_ASSERT_EQUAL_STRING((expected), (actual))
#define TEST (   group,
  name 
)
Value:
void TEST_ ## group ## _ ## name ## _(void); \
void TEST_ ## group ## _ ## name ## _run(void); \
void TEST_ ## group ## _ ## name ## _run(void) \
{ \
UnityTestRunner(TEST_ ## group ## _SETUP, \
TEST_ ## group ## _ ## name ## _, \
TEST_ ## group ## _TEAR_DOWN, \
"TEST(" #group ", " #name ")", \
TEST_GROUP_ ## group, #name, \
__FILE__, __LINE__); \
} \
void TEST_ ## group ## _ ## name ## _(void)
void UnityTestRunner(unityfunction *setup, unityfunction *testBody, unityfunction *teardown, const char *printableName, const char *group, const char *name, const char *file, int line)
Definition: unity_fixture.c:79
#define TEST_ASSERT_BYTES_EQUAL (   expected,
  actual 
)    TEST_ASSERT_EQUAL_HEX8(0xff & (expected), 0xff & (actual))
#define TEST_ASSERT_POINTERS_EQUAL (   expected,
  actual 
)    TEST_ASSERT_EQUAL_PTR(expected, actual)
#define TEST_GROUP (   group)    static const char* TEST_GROUP_ ## group = #group
#define TEST_GROUP_RUNNER (   group)
Value:
void TEST_ ## group ## _GROUP_RUNNER_runAll(void); \
void TEST_ ## group ## _GROUP_RUNNER(void); \
void TEST_ ## group ## _GROUP_RUNNER(void) \
{ \
TEST_ ## group ## _GROUP_RUNNER_runAll(); \
} \
void TEST_ ## group ## _GROUP_RUNNER_runAll(void)
#define TEST_SETUP (   group)
Value:
void TEST_ ## group ## _SETUP(void); \
void TEST_ ## group ## _SETUP(void)
#define TEST_TEAR_DOWN (   group)
Value:
void TEST_ ## group ## _TEAR_DOWN(void); \
void TEST_ ## group ## _TEAR_DOWN(void)
#define UT_PTR_SET (   ptr,
  newPointerValue 
)    UnityPointer_Set((void**)&ptr, (void*)newPointerValue)

Function Documentation

int UnityMain ( int  argc,
const char *  argv[],
void(*)(void)  runAllTests 
)
void UnityMalloc_MakeMallocFailAfterCount ( int  count)