File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
javascript/ql/test/library-tests/frameworks/data Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ taintFlow
27
27
| test.js:75:28:75:35 | source() | test.js:75:28:75:35 | source() |
28
28
| test.js:76:31:76:38 | source() | test.js:76:31:76:38 | source() |
29
29
| test.js:77:34:77:41 | source() | test.js:77:34:77:41 | source() |
30
+ | test.js:81:28:81:35 | source() | test.js:81:28:81:35 | source() |
30
31
isSink
31
32
| test.js:46:18:46:25 | source() | test-sink |
32
33
| test.js:47:22:47:29 | source() | test-sink |
68
69
| test.js:78:28:78:28 | 1 | test-sink |
69
70
| test.js:78:31:78:31 | 2 | test-sink |
70
71
| test.js:78:34:78:34 | 3 | test-sink |
72
+ | test.js:81:28:81:35 | source() | test-sink |
73
+ | test.js:82:28:82:28 | 1 | test-sink |
Original file line number Diff line number Diff line change @@ -76,4 +76,11 @@ function testSinks() {
76
76
testlib . mySinkExceptLast ( 1 , source ( ) , 3 , 4 ) ; // NOT OK
77
77
testlib . mySinkExceptLast ( 1 , 2 , source ( ) , 4 ) ; // NOT OK
78
78
testlib . mySinkExceptLast ( 1 , 2 , 3 , source ( ) ) ; // OK
79
+
80
+ testlib . mySinkIfArityTwo ( source ( ) ) ; // OK
81
+ testlib . mySinkIfArityTwo ( source ( ) , 2 ) ; // NOT OK
82
+ testlib . mySinkIfArityTwo ( 1 , source ( ) ) ; // OK
83
+ testlib . mySinkIfArityTwo ( source ( ) , 2 , 3 ) ; // OK
84
+ testlib . mySinkIfArityTwo ( 1 , source ( ) , 3 ) ; // OK
85
+ testlib . mySinkIfArityTwo ( 1 , 2 , source ( ) ) ; // OK
79
86
}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class Sinks extends ModelInput::SinkModelCsv {
28
28
"testlib;;Member[mySinkTwoLast].Argument[N-1,N-2];test-sink" ,
29
29
"testlib;;Member[mySinkTwoLastRange].Argument[N-2..N-1];test-sink" ,
30
30
"testlib;;Member[mySinkExceptLast].Argument[0..N-2];test-sink" ,
31
+ "testlib;;Member[mySinkIfArityTwo].WithArity[2].Argument[0];test-sink" ,
31
32
]
32
33
}
33
34
}
You can’t perform that action at this time.
0 commit comments