File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
java/ql/test/library-tests/frameworks/ratpack Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 11import java
22import semmle.code.java.dataflow.TaintTracking
33import semmle.code.java.dataflow.FlowSources
4- import TestUtilities.InlineExpectationsTest
4+ import TestUtilities.InlineFlowTest
55
66module Config implements DataFlow:: ConfigSig {
77 predicate isSource ( DataFlow:: Node n ) {
@@ -17,17 +17,10 @@ module Config implements DataFlow::ConfigSig {
1717
1818module Flow = TaintTracking:: Global< Config > ;
1919
20- class HasFlowTest extends InlineExpectationsTest {
20+ class HasFlowTest extends InlineFlowTest {
2121 HasFlowTest ( ) { this = "HasFlowTest" }
2222
23- override string getARelevantTag ( ) { result = "hasTaintFlow" }
23+ override predicate hasValueFlow ( DataFlow :: Node src , DataFlow :: Node sink ) { none ( ) }
2424
25- override predicate hasActualResult ( Location location , string element , string tag , string value ) {
26- tag = "hasTaintFlow" and
27- exists ( DataFlow:: Node sink | Flow:: flowTo ( sink ) |
28- sink .getLocation ( ) = location and
29- element = sink .toString ( ) and
30- value = ""
31- )
32- }
25+ override predicate hasTaintFlow ( DataFlow:: Node src , DataFlow:: Node sink ) { Flow:: flow ( src , sink ) }
3326}
You can’t perform that action at this time.
0 commit comments