mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
22 lines
728 B
Plaintext
22 lines
728 B
Plaintext
/**
|
|
* Inline flow tests for Ruby.
|
|
* See `shared/util/codeql/dataflow/test/InlineFlowTest.qll`
|
|
*/
|
|
|
|
import ruby
|
|
private import codeql.dataflow.test.InlineFlowTest
|
|
private import codeql.ruby.dataflow.internal.DataFlowImplSpecific
|
|
private import codeql.ruby.dataflow.internal.TaintTrackingImplSpecific
|
|
private import internal.InlineExpectationsTestImpl
|
|
|
|
private module FlowTestImpl implements InputSig<RubyDataFlow> {
|
|
import TestUtilities.InlineFlowTestUtil
|
|
|
|
string getArgString(DataFlow::Node src, DataFlow::Node sink) {
|
|
(if exists(getSourceArgString(src)) then result = getSourceArgString(src) else result = "") and
|
|
exists(sink)
|
|
}
|
|
}
|
|
|
|
import InlineFlowTestMake<RubyDataFlow, RubyTaintTracking, Impl, FlowTestImpl>
|