Debian Codegraph @

tests/languages/jolie/deployment_features.test

raw
1 Aggregates: First, Second with Third
2
3 Redirects: First => Second, Third => Fourth
4
5 Jolie: "logger.ol" in LoggerService
6
7 log@LoggerService( new )();
8 println @ Console( "none" )()
9
10 outputPort OutputPort3 {
11 location: "socket://localhost:9002/"
12 protocol: sodep
13 interfaces: Interface3
14 }
15
16 interface MyInterface {
17 OneWay:
18 myOW( string )
19 RequestResponse:
20 myRR( string )( string )
21 }
22
23 private service MainService {
24 embed ConfigurationService( ) as Conf
25 main {
26 getDBConn@Conf( )( res )
27 }
28 }
29
30 ----------------------------------------------------
31
32 [
33 ["property", "Aggregates"],
34 ["punctuation", ":"],
35 ["aggregates", [
36 ["class-name", "First"],
37 ["punctuation", ","],
38 ["class-name", "Second"],
39 ["keyword", "with"],
40 ["class-name", "Third"]
41 ]],
42
43 ["property", "Redirects"],
44 ["punctuation", ":"],
45 ["redirects", [
46 ["class-name", "First"],
47 ["operator", "=>"],
48 ["class-name", "Second"],
49 ["punctuation", ","],
50 ["class-name", "Third"],
51 ["operator", "=>"],
52 ["class-name", "Fourth"]
53 ]],
54
55 ["property", "Jolie"],
56 ["punctuation", ":"],
57 ["string", "\"logger.ol\""],
58 ["keyword", "in"],
59 ["class-name", "LoggerService"],
60
61 ["function", "log"],
62 ["operator", "@"],
63 ["class-name", "LoggerService"],
64 ["punctuation", "("],
65 ["keyword", "new"],
66 ["punctuation", ")"],
67 ["punctuation", "("],
68 ["punctuation", ")"],
69 ["punctuation", ";"],
70
71 ["function", "println"],
72 ["operator", "@"],
73 ["class-name", "Console"],
74 ["punctuation", "("],
75 ["string", "\"none\""],
76 ["punctuation", ")"],
77 ["punctuation", "("],
78 ["punctuation", ")"],
79
80 ["keyword", "outputPort"],
81 ["class-name", "OutputPort3"],
82 ["punctuation", "{"],
83
84 ["property", "location"],
85 ["punctuation", ":"],
86 ["string", "\"socket://localhost:9002/\""],
87
88 ["property", "protocol"],
89 ["punctuation", ":"],
90 " sodep\r\n ",
91
92 ["property", "interfaces"],
93 ["punctuation", ":"],
94 " Interface3\r\n",
95
96 ["punctuation", "}"],
97
98 ["keyword", "interface"],
99 " MyInterface ",
100 ["punctuation", "{"],
101
102 ["property", "OneWay"],
103 ["punctuation", ":"],
104
105 ["function", "myOW"],
106 ["punctuation", "("],
107 ["builtin", "string"],
108 ["punctuation", ")"],
109
110 ["property", "RequestResponse"],
111 ["punctuation", ":"],
112
113 ["function", "myRR"],
114 ["punctuation", "("],
115 ["builtin", "string"],
116 ["punctuation", ")"],
117 ["punctuation", "("],
118 ["builtin", "string"],
119 ["punctuation", ")"],
120
121 ["punctuation", "}"],
122
123 ["keyword", "private"],
124 ["keyword", "service"],
125 ["class-name", "MainService"],
126 ["punctuation", "{"],
127
128 ["keyword", "embed"],
129 ["class-name", "ConfigurationService"],
130 ["punctuation", "("],
131 ["punctuation", ")"],
132 ["keyword", "as"],
133 ["class-name", "Conf"],
134
135 ["keyword", "main"],
136 ["punctuation", "{"],
137
138 ["function", "getDBConn"],
139 ["operator", "@"],
140 ["class-name", "Conf"],
141 ["punctuation", "("],
142 ["punctuation", ")"],
143 ["punctuation", "("],
144 " res ",
145 ["punctuation", ")"],
146
147 ["punctuation", "}"],
148
149 ["punctuation", "}"]
150 ]
151
152 ----------------------------------------------------
153
154 Checks for outputPorts and Aggregates and Redirect constructs.