Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed-cloud-client/mbed-client-pal/Test/Unity/test/expectdata/testsample_yaml.c@2:bf2124b482f9, 2018-07-02 (annotated)
- Committer:
- MACRUM
- Date:
- Mon Jul 02 08:06:37 2018 +0000
- Revision:
- 2:bf2124b482f9
- Parent:
- 0:276e7a263c35
Update library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MACRUM | 0:276e7a263c35 | 1 | /* AUTOGENERATED FILE. DO NOT EDIT. */ |
MACRUM | 0:276e7a263c35 | 2 | |
MACRUM | 0:276e7a263c35 | 3 | /*=======Test Runner Used To Run Each Test Below=====*/ |
MACRUM | 0:276e7a263c35 | 4 | #define RUN_TEST(TestFunc, TestLineNum) \ |
MACRUM | 0:276e7a263c35 | 5 | { \ |
MACRUM | 0:276e7a263c35 | 6 | Unity.CurrentTestName = #TestFunc; \ |
MACRUM | 0:276e7a263c35 | 7 | Unity.CurrentTestLineNumber = TestLineNum; \ |
MACRUM | 0:276e7a263c35 | 8 | Unity.NumberOfTests++; \ |
MACRUM | 0:276e7a263c35 | 9 | if (TEST_PROTECT()) \ |
MACRUM | 0:276e7a263c35 | 10 | { \ |
MACRUM | 0:276e7a263c35 | 11 | CEXCEPTION_T e; \ |
MACRUM | 0:276e7a263c35 | 12 | Try { \ |
MACRUM | 0:276e7a263c35 | 13 | setUp(); \ |
MACRUM | 0:276e7a263c35 | 14 | TestFunc(); \ |
MACRUM | 0:276e7a263c35 | 15 | } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ |
MACRUM | 0:276e7a263c35 | 16 | } \ |
MACRUM | 0:276e7a263c35 | 17 | if (TEST_PROTECT() && !TEST_IS_IGNORED) \ |
MACRUM | 0:276e7a263c35 | 18 | { \ |
MACRUM | 0:276e7a263c35 | 19 | tearDown(); \ |
MACRUM | 0:276e7a263c35 | 20 | } \ |
MACRUM | 0:276e7a263c35 | 21 | UnityConcludeTest(); \ |
MACRUM | 0:276e7a263c35 | 22 | } |
MACRUM | 0:276e7a263c35 | 23 | |
MACRUM | 0:276e7a263c35 | 24 | /*=======Automagically Detected Files To Include=====*/ |
MACRUM | 0:276e7a263c35 | 25 | #include "unity.h" |
MACRUM | 0:276e7a263c35 | 26 | #include <setjmp.h> |
MACRUM | 0:276e7a263c35 | 27 | #include <stdio.h> |
MACRUM | 0:276e7a263c35 | 28 | #include "CException.h" |
MACRUM | 0:276e7a263c35 | 29 | #include "two.h" |
MACRUM | 0:276e7a263c35 | 30 | #include "three.h" |
MACRUM | 0:276e7a263c35 | 31 | #include <four.h> |
MACRUM | 0:276e7a263c35 | 32 | #include "funky.h" |
MACRUM | 0:276e7a263c35 | 33 | #include "stanky.h" |
MACRUM | 0:276e7a263c35 | 34 | #include <setjmp.h> |
MACRUM | 0:276e7a263c35 | 35 | |
MACRUM | 0:276e7a263c35 | 36 | /*=======External Functions This Runner Calls=====*/ |
MACRUM | 0:276e7a263c35 | 37 | extern void setUp(void); |
MACRUM | 0:276e7a263c35 | 38 | extern void tearDown(void); |
MACRUM | 0:276e7a263c35 | 39 | extern void test_TheFirstThingToTest(void); |
MACRUM | 0:276e7a263c35 | 40 | extern void test_TheSecondThingToTest(void); |
MACRUM | 0:276e7a263c35 | 41 | extern void test_TheThirdThingToTest(void); |
MACRUM | 0:276e7a263c35 | 42 | extern void test_TheFourthThingToTest(void); |
MACRUM | 0:276e7a263c35 | 43 | |
MACRUM | 0:276e7a263c35 | 44 | |
MACRUM | 0:276e7a263c35 | 45 | /*=======Suite Setup=====*/ |
MACRUM | 0:276e7a263c35 | 46 | static int suite_setup(void) |
MACRUM | 0:276e7a263c35 | 47 | { |
MACRUM | 0:276e7a263c35 | 48 | a_yaml_setup(); |
MACRUM | 0:276e7a263c35 | 49 | } |
MACRUM | 0:276e7a263c35 | 50 | |
MACRUM | 0:276e7a263c35 | 51 | /*=======Test Reset Option=====*/ |
MACRUM | 0:276e7a263c35 | 52 | void resetTest(void); |
MACRUM | 0:276e7a263c35 | 53 | void resetTest(void) |
MACRUM | 0:276e7a263c35 | 54 | { |
MACRUM | 0:276e7a263c35 | 55 | tearDown(); |
MACRUM | 0:276e7a263c35 | 56 | setUp(); |
MACRUM | 0:276e7a263c35 | 57 | } |
MACRUM | 0:276e7a263c35 | 58 | |
MACRUM | 0:276e7a263c35 | 59 | |
MACRUM | 0:276e7a263c35 | 60 | /*=======MAIN=====*/ |
MACRUM | 0:276e7a263c35 | 61 | int main(void) |
MACRUM | 0:276e7a263c35 | 62 | { |
MACRUM | 0:276e7a263c35 | 63 | suite_setup(); |
MACRUM | 0:276e7a263c35 | 64 | UnityBegin("testdata/testsample.c"); |
MACRUM | 0:276e7a263c35 | 65 | RUN_TEST(test_TheFirstThingToTest, 21); |
MACRUM | 0:276e7a263c35 | 66 | RUN_TEST(test_TheSecondThingToTest, 43); |
MACRUM | 0:276e7a263c35 | 67 | RUN_TEST(test_TheThirdThingToTest, 53); |
MACRUM | 0:276e7a263c35 | 68 | RUN_TEST(test_TheFourthThingToTest, 58); |
MACRUM | 0:276e7a263c35 | 69 | |
MACRUM | 0:276e7a263c35 | 70 | return (UnityEnd()); |
MACRUM | 0:276e7a263c35 | 71 | } |