mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
adding skeleton for experimental unit tests
This commit is contained in:
@@ -0,0 +1 @@
|
||||
queries/experimental/decompression-api/DecompressionAPI.ql
|
||||
@@ -0,0 +1,11 @@
|
||||
class TestController < ActionController::Base
|
||||
def unsafe_unzip
|
||||
TestModel::unzip(params[:path])
|
||||
end
|
||||
end
|
||||
|
||||
class TestModel
|
||||
def unzip(filename)
|
||||
Zlib::Inflate.inflate(filename)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user