AUnit
1.1
Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test.
|
Various assertTestXxx(), checkTestXxx(), assertTestXxxF() and checkTestXxxF() macros are defined in this header. More...
#include "Flash.h"
Go to the source code of this file.
Macros | |
#define | checkTestDone(name) (test_##name##_instance.isDone()) |
Return true if test 'name' is done. More... | |
#define | checkTestNotDone(name) (test_##name##_instance.isNotDone()) |
Return true if test 'name' is not done. More... | |
#define | checkTestPass(name) (test_##name##_instance.isPassed()) |
Return true if test 'name' has passed. More... | |
#define | checkTestNotPass(name) (test_##name##_instance.isNotPassed()) |
Return true if test 'name' has not passed. More... | |
#define | checkTestFail(name) (test_##name##_instance.isFailed()) |
Return true if test 'name' has failed. More... | |
#define | checkTestNotFail(name) (test_##name##_instance.isNotFailed()) |
Return true if test 'name' has not failed. More... | |
#define | checkTestSkip(name) (test_##name##_instance.isSkipped()) |
Return true if test 'name' has been skipped. More... | |
#define | checkTestNotSkip(name) (test_##name##_instance.isNotSkipped()) |
Return true if test 'name' has not been skipped. More... | |
#define | checkTestExpire(name) (test_##name##_instance.isExpired()) |
Return true if test 'name' has timed out. More... | |
#define | checkTestNotExpire(name) (test_##name##_instance.isNotExpired()) |
Return true if test 'name' has not timed out. More... | |
#define | assertTestDone(name) assertTestStatusInternal(name, isDone, kMessageDone) |
Assert that test 'name' is done. More... | |
#define | assertTestNotDone(name) assertTestStatusInternal(name, isNotDone, kMessageNotDone) |
Assert that test 'name' is not done. More... | |
#define | assertTestPass(name) assertTestStatusInternal(name, isPassed, kMessagePassed) |
Assert that test 'name' has passed. More... | |
#define | assertTestNotPass(name) assertTestStatusInternal(name, isNotPassed, kMessageNotPassed) |
Assert that test 'name' has not passed. More... | |
#define | assertTestFail(name) assertTestStatusInternal(name, isFailed, kMessageFailed) |
Assert that test 'name' has failed. More... | |
#define | assertTestNotFail(name) assertTestStatusInternal(name, isNotFailed, kMessageNotFailed) |
Assert that test 'name' has not failed. More... | |
#define | assertTestSkip(name) assertTestStatusInternal(name, isSkipped, kMessageSkipped) |
Assert that test 'name' has been skipped. More... | |
#define | assertTestNotSkip(name) assertTestStatusInternal(name, isNotSkipped, kMessageNotSkipped) |
Assert that test 'name' has not been skipped. More... | |
#define | assertTestExpire(name) assertTestStatusInternal(name, isExpired, kMessageExpired) |
Assert that test 'name' has timed out. More... | |
#define | assertTestNotExpire(name) assertTestStatusInternal(name, isNotExpired, kMessageNotExpired) |
Assert that test 'name' has not timed out. More... | |
#define | assertTestStatusInternal(name, method, message) |
Internal helper macro, shouldn't be called directly by users. More... | |
#define | checkTestDoneF(testClass, name) (testClass##_##name##_instance.isDone()) |
Return true if test 'name' is done. More... | |
#define | checkTestNotDoneF(testClass, name) (testClass##_##name##_instance.isNotDone()) |
Return true if test 'name' is not done. More... | |
#define | checkTestPassF(testClass, name) (testClass##_##name##_instance.isPassed()) |
Return true if test 'name' has passed. More... | |
#define | checkTestNotPassF(testClass, name) (testClass##_##name##_instance.isNotPassed()) |
Return true if test 'name' has not passed. More... | |
#define | checkTestFailF(testClass, name) (testClass##_##name##_instance.isFailed()) |
Return true if test 'name' has failed. More... | |
#define | checkTestNotFailF(testClass, name) (testClass##_##name##_instance.isNotFailed()) |
Return true if test 'name' has not failed. More... | |
#define | checkTestSkipF(testClass, name) (testClass##_##name##_instance.isSkipped()) |
Return true if test 'name' has been skipped. More... | |
#define | checkTestNotSkipF(testClass, name) (testClass##_##name##_instance.isNotSkipped()) |
Return true if test 'name' has not been skipped. More... | |
#define | checkTestExpireF(testClass, name) (testClass##_##name##_instance.isExpired()) |
Return true if test 'name' has timed out. More... | |
#define | checkTestNotExpireF(testClass, name) (testClass##_##name##_instance.isNotExpired()) |
Return true if test 'name' has not timed out. More... | |
#define | assertTestDoneF(testClass, name) assertTestStatusInternalF(testClass, name, isDone, kMessageDone) |
Assert that test 'name' is done. More... | |
#define | assertTestNotDoneF(testClass, name) assertTestStatusInternalF(testClass, name, isNotDone, kMessageNotDone) |
Assert that test 'name' is not done. More... | |
#define | assertTestPassF(testClass, name) assertTestStatusInternalF(testClass, name, isPassed, kMessagePassed) |
Assert that test 'name' has passed. More... | |
#define | assertTestNotPassF(testClass, name) assertTestStatusInternalF(testClass, name, isNotPassed, kMessageNotPassed) |
Assert that test 'name' has not passed. More... | |
#define | assertTestFailF(testClass, name) assertTestStatusInternalF(testClass, name, isFailed, kMessageFailed) |
Assert that test 'name' has failed. More... | |
#define | assertTestNotFailF(testClass, name) assertTestStatusInternalF(testClass, name, isNotFailed, kMessageNotFailed) |
Assert that test 'name' has not failed. More... | |
#define | assertTestSkipF(testClass, name) assertTestStatusInternalF(testClass, name, isSkipped, kMessageSkipped) |
Assert that test 'name' has been skipped. More... | |
#define | assertTestNotSkipF(testClass, name) |
Assert that test 'name' has not been skipped. More... | |
#define | assertTestExpireF(testClass, name) assertTestStatusInternalF(testClass, name, isExpired, kMessageExpired) |
Assert that test 'name' has timed out. More... | |
#define | assertTestNotExpireF(testClass, name) |
Assert that test 'name' has not timed out. More... | |
#define | assertTestStatusInternalF(testClass, name, method, message) |
Internal helper macro, shouldn't be called directly by users. More... | |
#define | failTestNow() |
Fail the current test, return immediately, and print a status message. More... | |
#define | passTestNow() |
Pass the current test, print a status message, and return immediately. More... | |
#define | skipTestNow() |
Skip the current test, print a status message, and return immediately. More... | |
#define | expireTestNow() |
Expire the current test, print a status message, and return immediately. More... | |
Various assertTestXxx(), checkTestXxx(), assertTestXxxF() and checkTestXxxF() macros are defined in this header.
Definition in file MetaAssertMacros.h.
#define assertTestDone | ( | name | ) | assertTestStatusInternal(name, isDone, kMessageDone) |
Assert that test 'name' is done.
Definition at line 77 of file MetaAssertMacros.h.
#define assertTestDoneF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isDone, kMessageDone) |
Assert that test 'name' is done.
Definition at line 170 of file MetaAssertMacros.h.
#define assertTestExpire | ( | name | ) | assertTestStatusInternal(name, isExpired, kMessageExpired) |
Assert that test 'name' has timed out.
Definition at line 109 of file MetaAssertMacros.h.
#define assertTestExpireF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isExpired, kMessageExpired) |
Assert that test 'name' has timed out.
Definition at line 203 of file MetaAssertMacros.h.
#define assertTestFail | ( | name | ) | assertTestStatusInternal(name, isFailed, kMessageFailed) |
Assert that test 'name' has failed.
Definition at line 93 of file MetaAssertMacros.h.
#define assertTestFailF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isFailed, kMessageFailed) |
Assert that test 'name' has failed.
Definition at line 186 of file MetaAssertMacros.h.
#define assertTestNotDone | ( | name | ) | assertTestStatusInternal(name, isNotDone, kMessageNotDone) |
Assert that test 'name' is not done.
Definition at line 81 of file MetaAssertMacros.h.
#define assertTestNotDoneF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isNotDone, kMessageNotDone) |
Assert that test 'name' is not done.
Definition at line 174 of file MetaAssertMacros.h.
#define assertTestNotExpire | ( | name | ) | assertTestStatusInternal(name, isNotExpired, kMessageNotExpired) |
Assert that test 'name' has not timed out.
Definition at line 113 of file MetaAssertMacros.h.
#define assertTestNotExpireF | ( | testClass, | |
name | |||
) |
Assert that test 'name' has not timed out.
Definition at line 207 of file MetaAssertMacros.h.
#define assertTestNotFail | ( | name | ) | assertTestStatusInternal(name, isNotFailed, kMessageNotFailed) |
Assert that test 'name' has not failed.
Definition at line 97 of file MetaAssertMacros.h.
#define assertTestNotFailF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isNotFailed, kMessageNotFailed) |
Assert that test 'name' has not failed.
Definition at line 190 of file MetaAssertMacros.h.
#define assertTestNotPass | ( | name | ) | assertTestStatusInternal(name, isNotPassed, kMessageNotPassed) |
Assert that test 'name' has not passed.
Definition at line 89 of file MetaAssertMacros.h.
#define assertTestNotPassF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isNotPassed, kMessageNotPassed) |
Assert that test 'name' has not passed.
Definition at line 182 of file MetaAssertMacros.h.
#define assertTestNotSkip | ( | name | ) | assertTestStatusInternal(name, isNotSkipped, kMessageNotSkipped) |
Assert that test 'name' has not been skipped.
Definition at line 105 of file MetaAssertMacros.h.
#define assertTestNotSkipF | ( | testClass, | |
name | |||
) |
Assert that test 'name' has not been skipped.
Definition at line 198 of file MetaAssertMacros.h.
#define assertTestPass | ( | name | ) | assertTestStatusInternal(name, isPassed, kMessagePassed) |
Assert that test 'name' has passed.
Definition at line 85 of file MetaAssertMacros.h.
#define assertTestPassF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isPassed, kMessagePassed) |
Assert that test 'name' has passed.
Definition at line 178 of file MetaAssertMacros.h.
#define assertTestSkip | ( | name | ) | assertTestStatusInternal(name, isSkipped, kMessageSkipped) |
Assert that test 'name' has been skipped.
Definition at line 101 of file MetaAssertMacros.h.
#define assertTestSkipF | ( | testClass, | |
name | |||
) | assertTestStatusInternalF(testClass, name, isSkipped, kMessageSkipped) |
Assert that test 'name' has been skipped.
Definition at line 194 of file MetaAssertMacros.h.
#define assertTestStatusInternal | ( | name, | |
method, | |||
message | |||
) |
Internal helper macro, shouldn't be called directly by users.
Definition at line 117 of file MetaAssertMacros.h.
#define assertTestStatusInternalF | ( | testClass, | |
name, | |||
method, | |||
message | |||
) |
Internal helper macro, shouldn't be called directly by users.
Definition at line 212 of file MetaAssertMacros.h.
#define checkTestDone | ( | name | ) | (test_##name##_instance.isDone()) |
Return true if test 'name' is done.
Definition at line 44 of file MetaAssertMacros.h.
#define checkTestDoneF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isDone()) |
Return true if test 'name' is done.
Definition at line 127 of file MetaAssertMacros.h.
#define checkTestExpire | ( | name | ) | (test_##name##_instance.isExpired()) |
Return true if test 'name' has timed out.
Definition at line 68 of file MetaAssertMacros.h.
#define checkTestExpireF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isExpired()) |
Return true if test 'name' has timed out.
Definition at line 159 of file MetaAssertMacros.h.
#define checkTestFail | ( | name | ) | (test_##name##_instance.isFailed()) |
Return true if test 'name' has failed.
Definition at line 56 of file MetaAssertMacros.h.
#define checkTestFailF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isFailed()) |
Return true if test 'name' has failed.
Definition at line 143 of file MetaAssertMacros.h.
#define checkTestNotDone | ( | name | ) | (test_##name##_instance.isNotDone()) |
Return true if test 'name' is not done.
Definition at line 47 of file MetaAssertMacros.h.
#define checkTestNotDoneF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isNotDone()) |
Return true if test 'name' is not done.
Definition at line 131 of file MetaAssertMacros.h.
#define checkTestNotExpire | ( | name | ) | (test_##name##_instance.isNotExpired()) |
Return true if test 'name' has not timed out.
Definition at line 71 of file MetaAssertMacros.h.
#define checkTestNotExpireF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isNotExpired()) |
Return true if test 'name' has not timed out.
Definition at line 163 of file MetaAssertMacros.h.
#define checkTestNotFail | ( | name | ) | (test_##name##_instance.isNotFailed()) |
Return true if test 'name' has not failed.
Definition at line 59 of file MetaAssertMacros.h.
#define checkTestNotFailF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isNotFailed()) |
Return true if test 'name' has not failed.
Definition at line 147 of file MetaAssertMacros.h.
#define checkTestNotPass | ( | name | ) | (test_##name##_instance.isNotPassed()) |
Return true if test 'name' has not passed.
Definition at line 53 of file MetaAssertMacros.h.
#define checkTestNotPassF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isNotPassed()) |
Return true if test 'name' has not passed.
Definition at line 139 of file MetaAssertMacros.h.
#define checkTestNotSkip | ( | name | ) | (test_##name##_instance.isNotSkipped()) |
Return true if test 'name' has not been skipped.
Definition at line 65 of file MetaAssertMacros.h.
#define checkTestNotSkipF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isNotSkipped()) |
Return true if test 'name' has not been skipped.
Definition at line 155 of file MetaAssertMacros.h.
#define checkTestPass | ( | name | ) | (test_##name##_instance.isPassed()) |
Return true if test 'name' has passed.
Definition at line 50 of file MetaAssertMacros.h.
#define checkTestPassF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isPassed()) |
Return true if test 'name' has passed.
Definition at line 135 of file MetaAssertMacros.h.
#define checkTestSkip | ( | name | ) | (test_##name##_instance.isSkipped()) |
Return true if test 'name' has been skipped.
Definition at line 62 of file MetaAssertMacros.h.
#define checkTestSkipF | ( | testClass, | |
name | |||
) | (testClass##_##name##_instance.isSkipped()) |
Return true if test 'name' has been skipped.
Definition at line 151 of file MetaAssertMacros.h.
#define expireTestNow | ( | ) |
Expire the current test, print a status message, and return immediately.
Similar to Test::expire() except that this prints a status message.
Definition at line 253 of file MetaAssertMacros.h.
#define failTestNow | ( | ) |
Fail the current test, return immediately, and print a status message.
Similar to Test::fail() except that this prints a status message.
Definition at line 225 of file MetaAssertMacros.h.
#define passTestNow | ( | ) |
Pass the current test, print a status message, and return immediately.
Similar to Test::pass() except that this prints a status message.
Definition at line 234 of file MetaAssertMacros.h.
#define skipTestNow | ( | ) |
Skip the current test, print a status message, and return immediately.
Similar to Test::skip() except that this prints a status message.
Definition at line 243 of file MetaAssertMacros.h.