mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
add framework test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Archive.rb:2:12:2:35 | call to open |
|
||||
4
ruby/ql/test/library-tests/frameworks/archive/Archive.ql
Normal file
4
ruby/ql/test/library-tests/frameworks/archive/Archive.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
private import ruby
|
||||
private import codeql.ruby.frameworks.Archive
|
||||
|
||||
query predicate rubyZipFileOpens(RubyZip::RubyZipFileOpen f) { any() }
|
||||
2
ruby/ql/test/library-tests/frameworks/archive/Archive.rb
Normal file
2
ruby/ql/test/library-tests/frameworks/archive/Archive.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
# `foo_file` is a RubyZip `Zip::File.open` instance
|
||||
foo_file = Zip::File.open(filename)
|
||||
Reference in New Issue
Block a user