|
SAF
|
Unit test program for the Spatial_Audio_Framework. More...
#include "saf_test.h"Go to the source code of this file.
Macros | |
| #define | RUN_TEST(testfunc) |
| A custom Unity RUN_TEST, which calls timerResult() upon exiting each test. | |
Functions | |
| void | setUp (void) |
| Called before each unit test is executed. | |
| void | tearDown (void) |
| Called after each unit test is executed. | |
| static void | timerResult (void) |
| Displays the time taken to run the current unit test. | |
| int | main_test (void) |
| Main unit testing program. | |
Variables | |
| static tick_t | start |
| Start time for whole test program. | |
| static tick_t | start_test |
| Start time for the current unit test. | |
Unit test program for the Spatial_Audio_Framework.
New unit tests may be added with the following steps:
1) add a unit test function prototype to the include header: saf_test.h, for example:
2) add the source code for the test in the appropriate source file. For example, if the unit test relates to the reverb module, then add the following to test__reverb_module.c
3) add a call for the new unit test in the main test source file: saf_test.c for example:
Definition in file saf_test.c.
| #define RUN_TEST | ( | testfunc | ) |
A custom Unity RUN_TEST, which calls timerResult() upon exiting each test.
Definition at line 67 of file saf_test.c.
| int main_test | ( | void | ) |
Main unit testing program.
Definition at line 73 of file saf_test.c.
| void setUp | ( | void | ) |
Called before each unit test is executed.
Definition at line 57 of file saf_test.c.
| void tearDown | ( | void | ) |
Called after each unit test is executed.
Definition at line 59 of file saf_test.c.
|
static |
Displays the time taken to run the current unit test.
Definition at line 61 of file saf_test.c.
|
static |
Start time for whole test program.
Definition at line 54 of file saf_test.c.
|
static |
Start time for the current unit test.
Definition at line 55 of file saf_test.c.