Skip to content

Commit 13a0ece

Browse files
committed
Ruby: Add test case: array constant barrier guard
This guard isn't yet recognised as a `StringConstArrayInclusionCall`.
1 parent 70f4efb commit 13a0ece

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@
3131
end
3232

3333
foo
34+
35+
FOO = ["foo"]
36+
37+
if FOO.include?(foo)
38+
foo
39+
else
40+
foo
41+
end

0 commit comments

Comments
 (0)