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
2727| test.js:75:28:75:35 | source() | test.js:75:28:75:35 | source() |
2828| test.js:76:31:76:38 | source() | test.js:76:31:76:38 | source() |
2929| 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() |
3031isSink
3132| test.js:46:18:46:25 | source() | test-sink |
3233| test.js:47:22:47:29 | source() | test-sink |
6869| test.js:78:28:78:28 | 1 | test-sink |
6970| test.js:78:31:78:31 | 2 | test-sink |
7071| 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() {
7676 testlib . mySinkExceptLast ( 1 , source ( ) , 3 , 4 ) ; // NOT OK
7777 testlib . mySinkExceptLast ( 1 , 2 , source ( ) , 4 ) ; // NOT OK
7878 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
7986}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class Sinks extends ModelInput::SinkModelCsv {
2828 "testlib;;Member[mySinkTwoLast].Argument[N-1,N-2];test-sink" ,
2929 "testlib;;Member[mySinkTwoLastRange].Argument[N-2..N-1];test-sink" ,
3030 "testlib;;Member[mySinkExceptLast].Argument[0..N-2];test-sink" ,
31+ "testlib;;Member[mySinkIfArityTwo].WithArity[2].Argument[0];test-sink" ,
3132 ]
3233 }
3334}
You can’t perform that action at this time.
0 commit comments