Line | |
---|
1 | module checkTestcasesModuleContainmentBad {
|
---|
2 | import from LibCommon_sync all;
|
---|
3 |
|
---|
4 | // bad module
|
---|
5 | function f_1() runs on component_1{
|
---|
6 | }
|
---|
7 |
|
---|
8 | testcase tc_1() runs on component_1{
|
---|
9 | var component_1 ptc0 := component_1.create;
|
---|
10 | ptc0.start(f_1());
|
---|
11 | ptc0.start(f_0()); // defined elsewhere
|
---|
12 | f_3(); //does not count - not in a start statement
|
---|
13 | }
|
---|
14 | //not used in a start statement
|
---|
15 | function f_3() runs on component_1{
|
---|
16 | }
|
---|
17 |
|
---|
18 | //not a testcase or a function\
|
---|
19 | const integer c_1 := 0;
|
---|
20 |
|
---|
21 |
|
---|
22 | group GroupedDefs{
|
---|
23 | //not used in a start statement
|
---|
24 | function f_4() runs on component_1 return float{
|
---|
25 | }
|
---|
26 |
|
---|
27 | function f_2() runs on component_1{
|
---|
28 | var component_1 ptc1 := component_1.create;
|
---|
29 | ptc1.start(f_1());
|
---|
30 | ptc1.start(f_0(f_4())); // does not count - used as a nested parameter
|
---|
31 | f_4(); //does not count - not in a start statement
|
---|
32 | timer t;
|
---|
33 | t.start(f_4()); //does not count - used in a timer start operation
|
---|
34 |
|
---|
35 | }
|
---|
36 |
|
---|
37 | testcase tc_2() runs on component_1{
|
---|
38 | var component_1 ptc2 := component_1.create;
|
---|
39 | ptc2.start(f_1());
|
---|
40 | ptc2.start(f_0()); // defined elsewhere
|
---|
41 |
|
---|
42 | }
|
---|
43 |
|
---|
44 | }
|
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.