File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
ruby/ql/test/library-tests/dataflow/barrier-guards Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 5
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 |
6
6
| barrier-guards.rb:37:4:37:20 | call to include? | barrier-guards.rb:38:5:38:7 | foo | barrier-guards.rb:37:17:37:19 | foo | true |
7
7
| barrier-guards.rb:43:4:43:15 | ... == ... | barrier-guards.rb:45:9:45:11 | foo | barrier-guards.rb:43:4:43:6 | foo | true |
8
- | barrier-guards.rb:69 :4:69 :21 | call to include? | barrier-guards.rb:70 :5:70 :7 | foo | barrier-guards.rb:69 :18:69 :20 | foo | true |
8
+ | barrier-guards.rb:70 :4:70 :21 | call to include? | barrier-guards.rb:71 :5:71 :7 | foo | barrier-guards.rb:70 :18:70 :20 | foo | true |
Original file line number Diff line number Diff line change 63
63
my_lambda ( )
64
64
end
65
65
66
+ foos = nil
66
67
foos = [ "foo" ]
67
- bars = [ "bar" ]
68
+ bars = NotAnArray . new
68
69
69
70
if foos . include? ( foo )
70
71
foo
71
72
else
72
73
foo
73
- end
74
+ end
75
+
76
+ if bars . include? ( foo )
77
+ foo
78
+ else
79
+ foo
80
+ end
81
+
82
+ bars = [ "bar" ]
83
+
84
+ if condition
85
+ bars = nil
86
+ end
87
+
88
+ if bars . include? ( foo )
89
+ foo
90
+ else
91
+ foo
92
+ end
You can’t perform that action at this time.
0 commit comments