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.
testsample.c
00001 // This is just a sample test file to be used to test the generator script 00002 #ifndef TEST_SAMPLE_H 00003 #define TEST_SAMPLE_H 00004 00005 #include <setjmp.h> 00006 #include "unity.h" 00007 #include "funky.h" 00008 #include "stanky.h" 00009 00010 void setUp(void) 00011 { 00012 CustomSetupStuff(); 00013 } 00014 00015 void tearDown(void) 00016 { 00017 CustomTeardownStuff 00018 } 00019 00020 //Yup, nice comment 00021 void test_TheFirstThingToTest(void) 00022 { 00023 TEST_ASSERT(1); 00024 00025 TEST_ASSERT_TRUE(1); 00026 } 00027 00028 /* 00029 void test_ShouldBeIgnored(void) 00030 { 00031 DoesStuff(); 00032 } 00033 */ 00034 00035 //void test_ShouldAlsoNotBeTested(void) 00036 //{ 00037 // Call_An_Expect(); 00038 // 00039 // CallAFunction(); 00040 // test_CallAFunctionThatLooksLikeATest(); 00041 //} 00042 00043 void test_TheSecondThingToTest(void) 00044 { 00045 uint8_t* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n"; 00046 00047 Call_An_Expect(); 00048 00049 CallAFunction(); 00050 test_CallAFunctionThatLooksLikeATest(); 00051 } 00052 00053 void test_TheThirdThingToTest(void) 00054 { 00055 CallAFunction(); 00056 } 00057 00058 void test_TheFourthThingToTest(void) 00059 { 00060 uint8_t* anotherString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n"; 00061 00062 Call_An_Expect(); 00063 00064 CallAFunction(); 00065 test_CallAFunctionThatLooksLikeATest(); 00066 } 00067 00068 #endif //TEST_SAMPLE_H
Generated on Mon Aug 29 2022 19:53:42 by
