Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers unity_fixture_TestRunner.c Source File

unity_fixture_TestRunner.c

00001 //- Copyright (c) 2010 James Grenning and Contributed to Unity Project
00002 /* ==========================================
00003     Unity Project - A Test Framework for C
00004     Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
00005     [Released under MIT License. Please refer to license.txt for details]
00006 ========================================== */
00007 
00008 #include "unity_fixture.h"
00009 
00010 TEST_GROUP_RUNNER(UnityFixture)
00011 {
00012     RUN_TEST_CASE(UnityFixture, PointerSetting);
00013     RUN_TEST_CASE(UnityFixture, ForceMallocFail);
00014     RUN_TEST_CASE(UnityFixture, ReallocSmallerIsUnchanged);
00015     RUN_TEST_CASE(UnityFixture, ReallocSameIsUnchanged);
00016     RUN_TEST_CASE(UnityFixture, ReallocLargerNeeded);
00017     RUN_TEST_CASE(UnityFixture, ReallocNullPointerIsLikeMalloc);
00018     RUN_TEST_CASE(UnityFixture, ReallocSizeZeroFreesMemAndReturnsNullPointer);
00019     RUN_TEST_CASE(UnityFixture, CallocFillsWithZero);
00020     RUN_TEST_CASE(UnityFixture, PointerSet);
00021     RUN_TEST_CASE(UnityFixture, FreeNULLSafety);
00022     RUN_TEST_CASE(UnityFixture, ConcludeTestIncrementsFailCount);
00023 }
00024 
00025 TEST_GROUP_RUNNER(UnityCommandOptions)
00026 {
00027     RUN_TEST_CASE(UnityCommandOptions, DefaultOptions);
00028     RUN_TEST_CASE(UnityCommandOptions, OptionVerbose);
00029     RUN_TEST_CASE(UnityCommandOptions, OptionSelectTestByGroup);
00030     RUN_TEST_CASE(UnityCommandOptions, OptionSelectTestByName);
00031     RUN_TEST_CASE(UnityCommandOptions, OptionSelectRepeatTestsDefaultCount);
00032     RUN_TEST_CASE(UnityCommandOptions, OptionSelectRepeatTestsSpecificCount);
00033     RUN_TEST_CASE(UnityCommandOptions, MultipleOptions);
00034     RUN_TEST_CASE(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified);
00035     RUN_TEST_CASE(UnityCommandOptions, UnknownCommandIsIgnored);
00036     RUN_TEST_CASE(UnityCommandOptions, GroupOrNameFilterWithoutStringFails);
00037     RUN_TEST_CASE(UnityCommandOptions, GroupFilterReallyFilters);
00038     RUN_TEST_CASE(UnityCommandOptions, TestShouldBeIgnored);
00039 }
00040 
00041 TEST_GROUP_RUNNER(LeakDetection)
00042 {
00043     RUN_TEST_CASE(LeakDetection, DetectsLeak);
00044     RUN_TEST_CASE(LeakDetection, BufferOverrunFoundDuringFree);
00045     RUN_TEST_CASE(LeakDetection, BufferOverrunFoundDuringRealloc);
00046     RUN_TEST_CASE(LeakDetection, BufferGuardWriteFoundDuringFree);
00047     RUN_TEST_CASE(LeakDetection, BufferGuardWriteFoundDuringRealloc);
00048     RUN_TEST_CASE(LeakDetection, PointerSettingMax);
00049 }
00050 
00051 TEST_GROUP_RUNNER(InternalMalloc)
00052 {
00053     RUN_TEST_CASE(InternalMalloc, MallocPastBufferFails);
00054     RUN_TEST_CASE(InternalMalloc, CallocPastBufferFails);
00055     RUN_TEST_CASE(InternalMalloc, MallocThenReallocGrowsMemoryInPlace);
00056     RUN_TEST_CASE(InternalMalloc, ReallocFailDoesNotFreeMem);
00057 }