mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
JS tests: add queries.xml
The `queries.xml` file defines which extractor the `codeql test` runner will use to extract databases for the tests. In the future one will be able to write this information in `qlpack.yml`, but we can't do that immediately because the _existing_ CodeQL tooling would refuse to parse a `qlpack.yml` that has the new field in it. Adding a queries.xml file means that the normalization of file names in the test output changes even with the old QLTest, so there are a number of consequential updates of expected output files.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
| /src/tst.html<\|>jquery<\|>23.0.0 | 4 |
|
||||
| /src/a.js<\|>lib3<\|>unknown | 3 |
|
||||
| /src/tst.html<\|>jquery<\|>42.0.0 | 3 |
|
||||
| /src/a.js<\|>lib1<\|>1.0.2 | 2 |
|
||||
| /src/b.js<\|>lib3<\|>unknown | 2 |
|
||||
| /src/a.js<\|>lib2<\|>1.0.0 | 1 |
|
||||
| /src/b.js<\|>lib2<\|>1.0.0 | 1 |
|
||||
| /src/sub/c.js<\|>lib1<\|>1.0.2 | 1 |
|
||||
| /src/sub/subsub/d.js<\|>lib1<\|>1.0.3 | 1 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/tst.html<\|>jquery<\|>23.0.0 | 4 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/a.js<\|>lib3<\|>unknown | 3 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/tst.html<\|>jquery<\|>42.0.0 | 3 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/a.js<\|>lib1<\|>1.0.2 | 2 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/b.js<\|>lib3<\|>unknown | 2 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/a.js<\|>lib2<\|>1.0.0 | 1 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/b.js<\|>lib2<\|>1.0.0 | 1 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/sub/c.js<\|>lib1<\|>1.0.2 | 1 |
|
||||
| /query-tests/Metrics/ExternalDependencies/src/sub/subsub/d.js<\|>lib1<\|>1.0.3 | 1 |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
| a.js:4:9:4:25 | require('./b.js') | Module a imports module b, which in turn $@ it. | b.js:4:9:4:25 | require('./a.js') | imports |
|
||||
| b.js:4:9:4:25 | require('./a.js') | Module b imports module a, which in turn $@ it. | a.js:4:9:4:25 | require('./b.js') | imports |
|
||||
| selfimport.js:1:1:1:23 | require ... mport') | Module selfimport directly imports itself. | selfimport.js:1:1:1:24 | <toplevel> | |
|
||||
| test1/a.js:1:1:1:27 | require ... ner/a') | Module /test1/a.js imports module .../inner/a.js, which in turn $@ it. | test2/inner/a.js:1:1:1:24 | require ... st1/a') | imports |
|
||||
| test1/a.js:1:1:1:27 | require ... ner/a') | Module .../test1/a.js imports module .../inner/a.js, which in turn $@ it. | test2/inner/a.js:1:1:1:24 | require ... st1/a') | imports |
|
||||
| test1/a.js:2:1:2:14 | require('./b') | Module a imports module b, which in turn $@ it. | test1/b.js:1:1:1:27 | require ... ner/a') | indirectly imports |
|
||||
| test1/b.js:1:1:1:27 | require ... ner/a') | Module b imports module a, which in turn $@ it. | test2/inner/a.js:1:1:1:24 | require ... st1/a') | indirectly imports |
|
||||
| test2/inner/a.js:1:1:1:24 | require ... st1/a') | Module .../inner/a.js imports module /test1/a.js, which in turn $@ it. | test1/a.js:1:1:1:27 | require ... ner/a') | imports |
|
||||
| test2/inner/a.js:1:1:1:24 | require ... st1/a') | Module .../inner/a.js imports module .../test1/a.js, which in turn $@ it. | test1/a.js:1:1:1:27 | require ... ner/a') | imports |
|
||||
|
||||
Reference in New Issue
Block a user