mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
aggregate the tests in library-tests/frameworks/Concepts into a single .ql file
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
import javascript
|
||||
|
||||
query DataFlow::Node getPathArgument(FileSystemAccess access) { result = access.getAPathArgument() }
|
||||
|
||||
query DataFlow::Node getReadNode(FileSystemReadAccess access) { result = access.getADataNode() }
|
||||
|
||||
query DataFlow::Node getWriteNode(FileSystemWriteAccess access) { result = access.getADataNode() }
|
||||
@@ -1,30 +0,0 @@
|
||||
| file-access.js:22:39:22:43 | files |
|
||||
| file-access.js:70:47:70:51 | files |
|
||||
| file-access.js:73:37:73:42 | files2 |
|
||||
| file-access.js:79:23:79:26 | path |
|
||||
| file-access.js:83:30:83:37 | filename |
|
||||
| file-access.js:84:2:86:3 | walk.sy ... h);\\n\\t}) |
|
||||
| file-access.js:87:14:87:29 | walk.sync('../') |
|
||||
| file-access.js:88:15:88:37 | await w ... ('../') |
|
||||
| tst-file-names.js:7:1:7:10 | walkSync() |
|
||||
| tst-file-names.js:9:35:9:44 | stats.name |
|
||||
| tst-file-names.js:11:1:11:12 | glob.sync(_) |
|
||||
| tst-file-names.js:13:13:13:16 | name |
|
||||
| tst-file-names.js:15:22:15:25 | name |
|
||||
| tst-file-names.js:17:1:17:22 | new glo ... ).found |
|
||||
| tst-file-names.js:19:1:19:14 | globby.sync(_) |
|
||||
| tst-file-names.js:21:16:21:20 | files |
|
||||
| tst-file-names.js:23:1:23:16 | fastGlob.sync(_) |
|
||||
| tst-file-names.js:25:18:25:22 | files |
|
||||
| tst-file-names.js:27:24:27:28 | files |
|
||||
| tst-file-names.js:29:27:29:30 | file |
|
||||
| tst-file-names.js:32:34:32:38 | files |
|
||||
| tst-file-names.js:34:15:34:29 | await globby(_) |
|
||||
| tst-file-names.js:36:16:36:38 | await f ... sync(_) |
|
||||
| tst-file-names.js:38:16:38:57 | await f ... => {}) |
|
||||
| tst-file-names.js:42:17:42:39 | globule ... /*.js') |
|
||||
| tst-file-names.js:43:15:43:50 | globule ... o.js"]) |
|
||||
| tst-file-names.js:45:12:45:42 | globule ... /*.js") |
|
||||
| tst-file-names.js:46:12:46:51 | globule ... .js"]}) |
|
||||
| tst-file-names.js:47:12:47:52 | globule ... b.js"]) |
|
||||
| tst-file-names.js:51:15:51:23 | await foo |
|
||||
@@ -1,3 +0,0 @@
|
||||
import javascript
|
||||
|
||||
select any(FileNameSource s)
|
||||
@@ -1,4 +0,0 @@
|
||||
| persistence.js:3:5:3:33 | localSt ... prop1') |
|
||||
| persistence.js:6:5:6:35 | session ... prop2') |
|
||||
| persistence.js:10:5:10:33 | localSt ... prop4') |
|
||||
| persistence.js:13:5:13:35 | session ... prop5') |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from PersistentReadAccess read
|
||||
select read
|
||||
@@ -1,2 +0,0 @@
|
||||
| persistence.js:3:5:3:33 | localSt ... prop1') | persistence.js:2:5:2:37 | localSt ... 1', v1) |
|
||||
| persistence.js:6:5:6:35 | session ... prop2') | persistence.js:5:5:5:39 | session ... 2', v2) |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from PersistentReadAccess read
|
||||
select read, read.getAWrite()
|
||||
@@ -1,4 +0,0 @@
|
||||
| persistence.js:2:5:2:37 | localSt ... 1', v1) | persistence.js:2:35:2:36 | v1 |
|
||||
| persistence.js:5:5:5:39 | session ... 2', v2) | persistence.js:5:37:5:38 | v2 |
|
||||
| persistence.js:8:5:8:37 | localSt ... 3', v3) | persistence.js:8:35:8:36 | v3 |
|
||||
| persistence.js:12:5:12:37 | localSt ... 5', v5) | persistence.js:12:35:12:36 | v5 |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from PersistentWriteAccess write
|
||||
select write, write.getValue()
|
||||
@@ -47,3 +47,47 @@ getWriteNode
|
||||
| file-access.js:29:1:29:45 | jsonfil ... ', obj) | file-access.js:29:42:29:44 | obj |
|
||||
| file-access.js:62:5:62:42 | writeJs ... true}) | file-access.js:62:31:62:41 | {bar: true} |
|
||||
| file-access.js:63:2:63:60 | writeJs ... : " "}) | file-access.js:63:33:63:44 | {bar: false} |
|
||||
fileNameSource
|
||||
| file-access.js:22:39:22:43 | files |
|
||||
| file-access.js:70:47:70:51 | files |
|
||||
| file-access.js:73:37:73:42 | files2 |
|
||||
| file-access.js:79:23:79:26 | path |
|
||||
| file-access.js:83:30:83:37 | filename |
|
||||
| file-access.js:84:2:86:3 | walk.sy ... h);\\n\\t}) |
|
||||
| file-access.js:87:14:87:29 | walk.sync('../') |
|
||||
| file-access.js:88:15:88:37 | await w ... ('../') |
|
||||
| tst-file-names.js:7:1:7:10 | walkSync() |
|
||||
| tst-file-names.js:9:35:9:44 | stats.name |
|
||||
| tst-file-names.js:11:1:11:12 | glob.sync(_) |
|
||||
| tst-file-names.js:13:13:13:16 | name |
|
||||
| tst-file-names.js:15:22:15:25 | name |
|
||||
| tst-file-names.js:17:1:17:22 | new glo ... ).found |
|
||||
| tst-file-names.js:19:1:19:14 | globby.sync(_) |
|
||||
| tst-file-names.js:21:16:21:20 | files |
|
||||
| tst-file-names.js:23:1:23:16 | fastGlob.sync(_) |
|
||||
| tst-file-names.js:25:18:25:22 | files |
|
||||
| tst-file-names.js:27:24:27:28 | files |
|
||||
| tst-file-names.js:29:27:29:30 | file |
|
||||
| tst-file-names.js:32:34:32:38 | files |
|
||||
| tst-file-names.js:34:15:34:29 | await globby(_) |
|
||||
| tst-file-names.js:36:16:36:38 | await f ... sync(_) |
|
||||
| tst-file-names.js:38:16:38:57 | await f ... => {}) |
|
||||
| tst-file-names.js:42:17:42:39 | globule ... /*.js') |
|
||||
| tst-file-names.js:43:15:43:50 | globule ... o.js"]) |
|
||||
| tst-file-names.js:45:12:45:42 | globule ... /*.js") |
|
||||
| tst-file-names.js:46:12:46:51 | globule ... .js"]}) |
|
||||
| tst-file-names.js:47:12:47:52 | globule ... b.js"]) |
|
||||
| tst-file-names.js:51:15:51:23 | await foo |
|
||||
persistentReadAccess_getAWrite
|
||||
| persistence.js:3:5:3:33 | localSt ... prop1') | persistence.js:2:5:2:37 | localSt ... 1', v1) |
|
||||
| persistence.js:6:5:6:35 | session ... prop2') | persistence.js:5:5:5:39 | session ... 2', v2) |
|
||||
persistentReadAccess
|
||||
| persistence.js:3:5:3:33 | localSt ... prop1') |
|
||||
| persistence.js:6:5:6:35 | session ... prop2') |
|
||||
| persistence.js:10:5:10:33 | localSt ... prop4') |
|
||||
| persistence.js:13:5:13:35 | session ... prop5') |
|
||||
persistentWriteAccess
|
||||
| persistence.js:2:5:2:37 | localSt ... 1', v1) | persistence.js:2:35:2:36 | v1 |
|
||||
| persistence.js:5:5:5:39 | session ... 2', v2) | persistence.js:5:37:5:38 | v2 |
|
||||
| persistence.js:8:5:8:37 | localSt ... 3', v3) | persistence.js:8:35:8:36 | v3 |
|
||||
| persistence.js:12:5:12:37 | localSt ... 5', v5) | persistence.js:12:35:12:36 | v5 |
|
||||
@@ -0,0 +1,21 @@
|
||||
import javascript
|
||||
|
||||
query DataFlow::Node getPathArgument(FileSystemAccess access) { result = access.getAPathArgument() }
|
||||
|
||||
query DataFlow::Node getReadNode(FileSystemReadAccess access) { result = access.getADataNode() }
|
||||
|
||||
query DataFlow::Node getWriteNode(FileSystemWriteAccess access) { result = access.getADataNode() }
|
||||
|
||||
query predicate fileNameSource(FileNameSource s) { any() }
|
||||
|
||||
query predicate persistentReadAccess_getAWrite(
|
||||
PersistentReadAccess read, PersistentWriteAccess write
|
||||
) {
|
||||
write = read.getAWrite()
|
||||
}
|
||||
|
||||
query predicate persistentReadAccess(PersistentReadAccess read) { any() }
|
||||
|
||||
query predicate persistentWriteAccess(PersistentWriteAccess write, DataFlow::Node value) {
|
||||
value = write.getValue()
|
||||
}
|
||||
Reference in New Issue
Block a user