You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
5 years ago
|
/* ==========================================
|
||
|
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 "cmock.h"
|
||
|
#include <setjmp.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
extern void setUp(void);
|
||
|
extern void tearDown(void);
|
||
|
|
||
|
extern void test_MemNewWillReturnNullIfGivenIllegalSizes(void);
|
||
|
extern void test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize(void);
|
||
|
extern void test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation(void);
|
||
|
extern void test_MemNextWillReturnNullIfGivenABadRoot(void);
|
||
|
extern void test_ThatWeCanClaimAndChainAFewElementsTogether(void);
|
||
|
extern void test_ThatWeCanAskForAllSortsOfSizes(void);
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
UnityBegin("TestCMockDynamic.c");
|
||
|
|
||
|
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 26);
|
||
|
RUN_TEST(test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize, 35);
|
||
|
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 45);
|
||
|
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 59);
|
||
|
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 70);
|
||
|
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 152);
|
||
|
|
||
|
UnityEnd();
|
||
|
CMock_Guts_MemFreeFinal();
|
||
|
return 0;
|
||
|
}
|