1
0
mirror of https://github.com/ThrowTheSwitch/CMock synced 2025-03-11 16:41:12 -04:00
CMock/test/c/TestCMockCDynamic_Runner.c

44 lines
1.6 KiB
C
Raw Permalink Normal View History

/* =========================================================================
CMock - Automatic Mock Generation for C
ThrowTheSwitch.org
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */
2016-01-04 20:00:32 -05:00
/* ==========================================
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;
}