CryptoAuthLib
Atmel CryptoAuthentication Library
|
#include "unity.h"
Macros | |
#define | UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; longjmp(Unity.AbortFrame, 1); } |
#define | UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); } |
#define | UNITY_SKIP_EXECUTION { if ((Unity.CurrentTestFailed != 0) || (Unity.CurrentTestIgnored != 0)) { return; } } |
return prematurely if we are already in failure or ignore state More... | |
#define | UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); } |
Functions | |
void | UnityPrintFail (void) |
void | UnityPrintOk (void) |
void | UnityPrint (const char *string) |
void | UnityPrintNumberByStyle (const _U_SINT number, const UNITY_DISPLAY_STYLE_T style) |
void | UnityPrintNumber (const _U_SINT number_to_print) |
basically do an itoa using as little ram as possible More... | |
void | UnityPrintNumberUnsigned (const _U_UINT number) |
basically do an itoa using as little ram as possible More... | |
void | UnityPrintNumberHex (const _U_UINT number, const char nibbles_to_print) |
void | UnityPrintMask (const _U_UINT mask, const _U_UINT number) |
void | UnityConcludeTest (void) |
void | UnityAssertBits (const _U_SINT mask, const _U_SINT expected, const _U_SINT actual, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityAssertEqualNumber (const _U_SINT expected, const _U_SINT actual, const char *msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) |
void | UnityAssertEqualIntArray (UNITY_PTR_ATTRIBUTE const void *expected, UNITY_PTR_ATTRIBUTE const void *actual, const _UU32 num_elements, const char *msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) |
void | UnityAssertEqualFloatArray (UNITY_PTR_ATTRIBUTE const _UF *expected, UNITY_PTR_ATTRIBUTE const _UF *actual, const _UU32 num_elements, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityAssertFloatsWithin (const _UF delta, const _UF expected, const _UF actual, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityAssertFloatSpecial (const _UF actual, const char *msg, const UNITY_LINE_TYPE lineNumber, const UNITY_FLOAT_TRAIT_T style) |
void | UnityAssertNumbersWithin (const _U_SINT delta, const _U_SINT expected, const _U_SINT actual, const char *msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) |
void | UnityAssertEqualString (const char *expected, const char *actual, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityAssertEqualStringArray (const char **expected, const char **actual, const _UU32 num_elements, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityAssertEqualMemory (UNITY_PTR_ATTRIBUTE const void *expected, UNITY_PTR_ATTRIBUTE const void *actual, const _UU32 length, const _UU32 num_elements, const char *msg, const UNITY_LINE_TYPE lineNumber) |
void | UnityFail (const char *msg, const UNITY_LINE_TYPE line) |
void | UnityIgnore (const char *msg, const UNITY_LINE_TYPE line) |
void | setUp (void) |
void | tearDown (void) |
void | UnityDefaultTestRun (UnityTestFunction Func, const char *FuncName, const int FuncLineNum) |
void | UnityBegin (const char *filename) |
int | UnityEnd (void) |
Variables | |
struct _Unity | Unity |
const char | UnityStrOk [] = "OK" |
const char | UnityStrPass [] = "PASS" |
const char | UnityStrFail [] = "FAIL" |
const char | UnityStrIgnore [] = "IGNORE" |
const char | UnityStrNull [] = "NULL" |
const char | UnityStrSpacer [] = ". " |
const char | UnityStrExpected [] = " Expected " |
const char | UnityStrWas [] = " Was " |
const char | UnityStrTo [] = " To " |
const char | UnityStrElement [] = " Element " |
const char | UnityStrByte [] = " Byte " |
const char | UnityStrMemory [] = " Memory Mismatch." |
const char | UnityStrDelta [] = " Values Not Within Delta " |
const char | UnityStrPointless [] = " You Asked Me To Compare Nothing, Which Was Pointless." |
const char | UnityStrNullPointerForExpected [] = " Expected pointer to be NULL" |
const char | UnityStrNullPointerForActual [] = " Actual pointer was NULL" |
const char | UnityStrNot [] = "Not " |
const char | UnityStrInf [] = "Infinity" |
const char | UnityStrNegInf [] = "Negative Infinity" |
const char | UnityStrNaN [] = "NaN" |
const char | UnityStrDet [] = "Determinate" |
const char | UnityStrErrFloat [] = "Unity Floating Point Disabled" |
const char | UnityStrErrDouble [] = "Unity Double Precision Disabled" |
const char | UnityStrErr64 [] = "Unity 64-bit Support Disabled" |
const char | UnityStrBreaker [] = "-----------------------" |
const char | UnityStrResultsTests [] = " Tests " |
const char | UnityStrResultsFailures [] = " Failures " |
const char | UnityStrResultsIgnored [] = " Ignored " |
const _U_UINT | UnitySizeMask [] |
#define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; longjmp(Unity.AbortFrame, 1); } |
#define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); } |
#define UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); } |
#define UNITY_SKIP_EXECUTION { if ((Unity.CurrentTestFailed != 0) || (Unity.CurrentTestIgnored != 0)) { return; } } |
return prematurely if we are already in failure or ignore state
void setUp | ( | void | ) |
void tearDown | ( | void | ) |
void UnityAssertBits | ( | const _U_SINT | mask, |
const _U_SINT | expected, | ||
const _U_SINT | actual, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertEqualFloatArray | ( | UNITY_PTR_ATTRIBUTE const _UF * | expected, |
UNITY_PTR_ATTRIBUTE const _UF * | actual, | ||
const _UU32 | num_elements, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertEqualIntArray | ( | UNITY_PTR_ATTRIBUTE const void * | expected, |
UNITY_PTR_ATTRIBUTE const void * | actual, | ||
const _UU32 | num_elements, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber, | ||
const UNITY_DISPLAY_STYLE_T | style | ||
) |
void UnityAssertEqualMemory | ( | UNITY_PTR_ATTRIBUTE const void * | expected, |
UNITY_PTR_ATTRIBUTE const void * | actual, | ||
const _UU32 | length, | ||
const _UU32 | num_elements, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertEqualNumber | ( | const _U_SINT | expected, |
const _U_SINT | actual, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber, | ||
const UNITY_DISPLAY_STYLE_T | style | ||
) |
void UnityAssertEqualString | ( | const char * | expected, |
const char * | actual, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertEqualStringArray | ( | const char ** | expected, |
const char ** | actual, | ||
const _UU32 | num_elements, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertFloatSpecial | ( | const _UF | actual, |
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber, | ||
const UNITY_FLOAT_TRAIT_T | style | ||
) |
void UnityAssertFloatsWithin | ( | const _UF | delta, |
const _UF | expected, | ||
const _UF | actual, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber | ||
) |
void UnityAssertNumbersWithin | ( | const _U_SINT | delta, |
const _U_SINT | expected, | ||
const _U_SINT | actual, | ||
const char * | msg, | ||
const UNITY_LINE_TYPE | lineNumber, | ||
const UNITY_DISPLAY_STYLE_T | style | ||
) |
void UnityBegin | ( | const char * | filename | ) |
void UnityConcludeTest | ( | void | ) |
void UnityDefaultTestRun | ( | UnityTestFunction | Func, |
const char * | FuncName, | ||
const int | FuncLineNum | ||
) |
int UnityEnd | ( | void | ) |
void UnityFail | ( | const char * | msg, |
const UNITY_LINE_TYPE | line | ||
) |
void UnityIgnore | ( | const char * | msg, |
const UNITY_LINE_TYPE | line | ||
) |
void UnityPrint | ( | const char * | string | ) |
void UnityPrintFail | ( | void | ) |
void UnityPrintNumber | ( | const _U_SINT | number_to_print | ) |
basically do an itoa using as little ram as possible
void UnityPrintNumberByStyle | ( | const _U_SINT | number, |
const UNITY_DISPLAY_STYLE_T | style | ||
) |
void UnityPrintNumberHex | ( | const _U_UINT | number, |
const char | nibbles_to_print | ||
) |
void UnityPrintNumberUnsigned | ( | const _U_UINT | number | ) |
basically do an itoa using as little ram as possible
void UnityPrintOk | ( | void | ) |
struct _Unity Unity |
const _U_UINT UnitySizeMask[] |
const char UnityStrBreaker[] = "-----------------------" |
const char UnityStrByte[] = " Byte " |
const char UnityStrDelta[] = " Values Not Within Delta " |
const char UnityStrDet[] = "Determinate" |
const char UnityStrElement[] = " Element " |
const char UnityStrErr64[] = "Unity 64-bit Support Disabled" |
const char UnityStrErrDouble[] = "Unity Double Precision Disabled" |
const char UnityStrErrFloat[] = "Unity Floating Point Disabled" |
const char UnityStrExpected[] = " Expected " |
const char UnityStrFail[] = "FAIL" |
const char UnityStrIgnore[] = "IGNORE" |
const char UnityStrInf[] = "Infinity" |
const char UnityStrMemory[] = " Memory Mismatch." |
const char UnityStrNaN[] = "NaN" |
const char UnityStrNegInf[] = "Negative Infinity" |
const char UnityStrNot[] = "Not " |
const char UnityStrNull[] = "NULL" |
const char UnityStrNullPointerForActual[] = " Actual pointer was NULL" |
const char UnityStrNullPointerForExpected[] = " Expected pointer to be NULL" |
const char UnityStrOk[] = "OK" |
const char UnityStrPass[] = "PASS" |
const char UnityStrPointless[] = " You Asked Me To Compare Nothing, Which Was Pointless." |
const char UnityStrResultsFailures[] = " Failures " |
const char UnityStrResultsIgnored[] = " Ignored " |
const char UnityStrResultsTests[] = " Tests " |
const char UnityStrSpacer[] = ". " |
const char UnityStrTo[] = " To " |
const char UnityStrWas[] = " Was " |