File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed
ql/test/library-tests/dataflow/barrier-guards Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
- | barrier-guards.rb:3:4:3:15 | ... == ... | barrier-guards.rb:4:13:4:15 | foo | barrier-guards.rb:3:4:3:6 | foo | true |
2
- | barrier-guards.rb:9:4:9:24 | call to include? | barrier-guards.rb:10:13:10:15 | foo | barrier-guards.rb:9:21:9:23 | foo | true |
3
- | barrier-guards.rb:15:4:15:15 | ... != ... | barrier-guards.rb:18:14:18:16 | foo | barrier-guards.rb:15:4:15:6 | foo | false |
1
+ | barrier-guards.rb:3:4:3:15 | ... == ... | barrier-guards.rb:4:5:4:7 | foo | barrier-guards.rb:3:4:3:6 | foo | true |
2
+ | barrier-guards.rb:9:4:9:24 | call to include? | barrier-guards.rb:10:5:10:7 | foo | barrier-guards.rb:9:21:9:23 | foo | true |
3
+ | barrier-guards.rb:15:4:15:15 | ... != ... | barrier-guards.rb:18:5:18:7 | foo | barrier-guards.rb:15:4:15:6 | foo | false |
4
+ | barrier-guards.rb:21:8:21:19 | ... == ... | barrier-guards.rb:24:5:24:7 | foo | barrier-guards.rb:21:8:21:10 | foo | true |
5
+ | barrier-guards.rb:27:8:27:19 | ... != ... | barrier-guards.rb:28:5:28:7 | foo | barrier-guards.rb:27:8:27:10 | foo | false |
Original file line number Diff line number Diff line change 1
1
foo = "foo"
2
2
3
3
if foo == "foo"
4
- do_true foo
4
+ foo
5
5
else
6
- do_false foo
6
+ foo
7
7
end
8
8
9
9
if [ "foo" ] . include? ( foo )
10
- do_true foo
10
+ foo
11
11
else
12
- do_false foo
12
+ foo
13
13
end
14
14
15
15
if foo != "foo"
16
- do_true foo
16
+ foo
17
17
else
18
- do_false foo
18
+ foo
19
19
end
20
20
21
- do_default foo
21
+ unless foo == "foo"
22
+ foo
23
+ else
24
+ foo
25
+ end
26
+
27
+ unless foo != "foo"
28
+ foo
29
+ end
22
30
31
+ foo
You can’t perform that action at this time.
0 commit comments