Debian Codegraph @

test/system/test_interactions/skeleton.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.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 # we are purposefully not including a :code section because it will be generated with skeleton
23
24 :tests:
25 :common: |
26 void setUp(void) {}
27 void tearDown(void) {}
28
29 :units:
30 - :pass: TRUE
31 :should: 'generate an empty shell for functions with no return values'
32 :code: |
33 test()
34 {
35 function_a();
36 }
37
38 - :pass: TRUE
39 :should: 'return numerical zero for numerical return values'
40 :code: |
41 test()
42 {
43 TEST_ASSERT_EQUAL_INT(0, function_b(1, 2));
44 }
45
46 - :pass: TRUE
47 :should: 'return null for pointer return values'
48 :code: |
49 test()
50 {
51 TEST_ASSERT_NULL(function_c());
52 }
53
54
55 ...