| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#include "unity.h" |
| 8 |
#include <setjmp.h> |
| 9 |
#include <stdio.h> |
| 10 |
|
| 11 |
extern void setUp(void); |
| 12 |
extern void tearDown(void); |
| 13 |
|
| 14 |
extern void test_MemNewWillReturnNullIfGivenIllegalSizes(void); |
| 15 |
extern void test_MemShouldProtectAgainstMemoryOverflow(void); |
| 16 |
extern void test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation(void); |
| 17 |
extern void test_MemNextWillReturnNullIfGivenABadRoot(void); |
| 18 |
extern void test_ThatWeCanClaimAndChainAFewElementsTogether(void); |
| 19 |
extern void test_MemEndOfChain(void); |
| 20 |
extern void test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory(void); |
| 21 |
extern void test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd(void); |
| 22 |
extern void test_ThatWeCanAskForAllSortsOfSizes(void); |
| 23 |
|
| 24 |
int main(void) |
| 25 |
{ |
| 26 |
Unity.TestFile = "TestCMock.c"; |
| 27 |
UnityBegin(Unity.TestFile); |
| 28 |
|
| 29 |
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 21); |
| 30 |
RUN_TEST(test_MemShouldProtectAgainstMemoryOverflow, 33); |
| 31 |
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 42); |
| 32 |
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 56); |
| 33 |
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 67); |
| 34 |
RUN_TEST(test_MemEndOfChain, 149); |
| 35 |
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory, 195); |
| 36 |
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd, 244); |
| 37 |
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 298); |
| 38 |
|
| 39 |
UnityEnd(); |
| 40 |
return 0; |
| 41 |
} |