Debian Codegraph @

test/system/test_interactions/skeleton_update.yml

raw symbols SCIP
1 ---
2 :cmock:
3 :plugins:
4 - # none
5 :skeleton_path: system/generated
6
7 :systest:
8 :types: |
9 #define UINT32 unsigned int
10
11 :mockable: |
12 UINT32 something(int a);
13
14 :skeleton: skeleton_update.h
15
16 :source:
17 :header: |
18 void function_a(void);
19 int function_b(int a, int b);
20 const char* function_c(void);
21
22 # note that this code section exists and will be updated by the skeleton generator
23 :code: |
24 const char* donuts = "donuts";
25 const char* function_c(void)
26 {
27 return donuts;
28 }
29
30 int function_d(void)
31 {
32 return 77;
33 }
34
35
36 :tests:
37 :common: |
38 void setUp(void) {}
39 void tearDown(void) {}
40 extern int function_d();
41
42 :units:
43 - :pass: TRUE
44 :should: 'generate an empty shell for functions with no return values'
45 :code: |
46 test()
47 {
48 function_a();
49 }
50
51 - :pass: TRUE
52 :should: 'return numerical zero for numerical return values'
53 :code: |
54 test()
55 {
56 TEST_ASSERT_EQUAL_INT(0, function_b(1, 2));
57 }
58
59 - :pass: TRUE
60 :should: 'not overwrite functions that already exist'
61 :code: |
62 test()
63 {
64 TEST_ASSERT_EQUAL_STRING("donuts", function_c());
65 }
66
67 - :pass: TRUE
68 :should: 'leave functions it has never heard of'
69 :code: |
70 test()
71 {
72 TEST_ASSERT_EQUAL_INT(77, function_d());
73 }
74
75
76 ...