mirror of
https://github.com/ThrowTheSwitch/CMock
synced 2025-02-02 10:08:41 -05:00
44 lines
1.6 KiB
C
44 lines
1.6 KiB
C
/* =========================================================================
|
|
CMock - Automatic Mock Generation for C
|
|
ThrowTheSwitch.org
|
|
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
|
SPDX-License-Identifier: MIT
|
|
========================================================================= */
|
|
|
|
/* ==========================================
|
|
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;
|
|
}
|