diff options
Diffstat (limited to 'FreeRTOS-Plus/Test/CMock/test/c/TestCMockC_Runner.c')
-rw-r--r-- | FreeRTOS-Plus/Test/CMock/test/c/TestCMockC_Runner.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/FreeRTOS-Plus/Test/CMock/test/c/TestCMockC_Runner.c b/FreeRTOS-Plus/Test/CMock/test/c/TestCMockC_Runner.c new file mode 100644 index 000000000..af559d8f4 --- /dev/null +++ b/FreeRTOS-Plus/Test/CMock/test/c/TestCMockC_Runner.c @@ -0,0 +1,41 @@ +/* ========================================== + CMock Project - Automatic Mock Generation for C + Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams + [Released under MIT License. Please refer to license.txt for details] +========================================== */ + +#include "unity.h" +#include <setjmp.h> +#include <stdio.h> + +extern void setUp(void); +extern void tearDown(void); + +extern void test_MemNewWillReturnNullIfGivenIllegalSizes(void); +extern void test_MemShouldProtectAgainstMemoryOverflow(void); +extern void test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation(void); +extern void test_MemNextWillReturnNullIfGivenABadRoot(void); +extern void test_ThatWeCanClaimAndChainAFewElementsTogether(void); +extern void test_MemEndOfChain(void); +extern void test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory(void); +extern void test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd(void); +extern void test_ThatWeCanAskForAllSortsOfSizes(void); + +int main(void) +{ + Unity.TestFile = "TestCMock.c"; + UnityBegin(Unity.TestFile); + + RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 21); + RUN_TEST(test_MemShouldProtectAgainstMemoryOverflow, 33); + RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 42); + RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 56); + RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 67); + RUN_TEST(test_MemEndOfChain, 149); + RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory, 195); + RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd, 244); + RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 298); + + UnityEnd(); + return 0; +} |