Debian Codegraph @

src/tests/keywords/switch-escape

raw
1 update request {
2 &Tmp-String-0 := 'foo'
3 }
4
5 switch "%{tolower:%{request:Tmp-String-0}}" {
6 case 'foo' {
7 update reply {
8 Filter-Id := "filter"
9 }
10 }
11
12 case '' {
13 update reply {
14 Filter-Id += "fail-empty-1"
15 }
16 }
17
18 case {
19 update reply {
20 Filter-Id += "fail-default-1"
21 }
22 }
23 }
24
25 switch "%{request:Tmp-String-0}" {
26 case 'foo' {
27 update reply {
28 Filter-Id := "filter"
29 }
30 }
31
32 case '' {
33 update reply {
34 Filter-Id += "fail-empty-2"
35 }
36 }
37
38 case {
39 update reply {
40 Filter-Id += "fail-default-2"
41 }
42 }
43 }