| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#include "unity.h" |
| 8 |
#include "cmock.h" |
| 9 |
#include <setjmp.h> |
| 10 |
#include <stdio.h> |
| 11 |
|
| 12 |
extern void setUp(void); |
| 13 |
extern void tearDown(void); |
| 14 |
|
| 15 |
extern void test_MemNewWillReturnNullIfGivenIllegalSizes(void); |
| 16 |
extern void test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize(void); |
| 17 |
extern void test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation(void); |
| 18 |
extern void test_MemNextWillReturnNullIfGivenABadRoot(void); |
| 19 |
extern void test_ThatWeCanClaimAndChainAFewElementsTogether(void); |
| 20 |
extern void test_ThatWeCanAskForAllSortsOfSizes(void); |
| 21 |
|
| 22 |
int main(void) |
| 23 |
{ |
| 24 |
UnityBegin("TestCMockDynamic.c"); |
| 25 |
|
| 26 |
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 26); |
| 27 |
RUN_TEST(test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize, 35); |
| 28 |
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 45); |
| 29 |
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 59); |
| 30 |
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 70); |
| 31 |
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 152); |
| 32 |
|
| 33 |
UnityEnd(); |
| 34 |
CMock_Guts_MemFreeFinal(); |
| 35 |
return 0; |
| 36 |
} |