Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3e532c2
aggregate the tests in library-tests/DataFlow into a single .ql file
erik-krogh Oct 14, 2020
4f28b6d
aggregate the tests in frameworks/UrlLibraries into a single .ql file
erik-krogh Oct 14, 2020
6909362
aggregate the tests in library-tests/XML into a single .ql file
erik-krogh Oct 14, 2020
c8af1d1
aggregate the tests in library-tests/TypeScript/Types into a single .…
erik-krogh Oct 14, 2020
a667b69
aggregate the tests in library-tests/NodeJS into a single .ql file
erik-krogh Oct 14, 2020
1e76471
aggregate the tests in library-tests/TypeScript/TypeVariableTypes int…
erik-krogh Oct 14, 2020
fcee5fa
aggregate the tests in library-tests/TypeScript/Modifiers into a sing…
erik-krogh Oct 14, 2020
c9a0179
aggregate the tests in library-tests/TypeScript/Enums into a single .…
erik-krogh Oct 14, 2020
deedc8c
aggregate the tests in library-tests/TypeScript/TypeParameters into a…
erik-krogh Oct 14, 2020
a588f43
aggregate the tests in library-tests/TypeScript/LocalTypeResolution i…
erik-krogh Oct 14, 2020
7817ee7
aggregate the tests in library-tests/TypeScript/BigInts into a single…
erik-krogh Oct 14, 2020
41b940d
aggregate the tests in library-tests/TypeScript/ExternalTypes into a …
erik-krogh Oct 14, 2020
778fbe6
aggregate the tests in library-tests/TypeScript/ArrayTypes into a sin…
erik-krogh Oct 14, 2020
a47b8c3
aggregate the tests in library-tests/TypeScript/ImportEquals into a s…
erik-krogh Oct 14, 2020
bc5ed10
aggregate the tests in library-tests/Patterns into a single .ql file
erik-krogh Oct 14, 2020
26a5d62
aggregate the tests in library-tests/NPM into a single .ql file
erik-krogh Oct 14, 2020
1e537db
aggregate the tests in library-tests/frameworks/Vue into a single .ql…
erik-krogh Oct 14, 2020
ed77e05
aggregate some of the tests in library-tests/frameworks/HTTP-heuristi…
erik-krogh Oct 15, 2020
a3e6054
aggregate the tests in library-tests/frameworks/Electron into a singl…
erik-krogh Oct 15, 2020
771cab2
aggregate the tests in library-tests/frameworks/Firebase into a singl…
erik-krogh Oct 15, 2020
aece171
aggregate the tests in library-tests/frameworks/xUnit into a single .…
erik-krogh Oct 15, 2020
10f4187
aggregate the tests in library-tests/frameworks/Concepts into a singl…
erik-krogh Oct 15, 2020
55f130f
aggregate the tests in library-tests/AMD into a single .ql file
erik-krogh Oct 15, 2020
0c65eee
aggregate the tests in library-tests/YAML into a single .ql file
erik-krogh Oct 15, 2020
e461c92
aggregate the tests in library-tests/JSX into a single .ql file
erik-krogh Oct 15, 2020
5d401f9
aggregate the tests in library-tests/Externs into a single .ql file
erik-krogh Oct 15, 2020
ad7844a
aggregate the tests in library-tests/ClassNode into a single .ql file
erik-krogh Oct 15, 2020
d678cc1
aggregate the tests in library-tests/Templates into a single .ql file
erik-krogh Oct 20, 2020
003854e
aggregate the tests in library-tests/SensitiveActions into a single .…
erik-krogh Oct 20, 2020
b43e21a
aggregate the tests in library-tests/HTML/HTMLElementAndHTMLAttribute…
erik-krogh Oct 20, 2020
0ac55bd
aggregate the tests in library-tests/Flow into a single .ql file
erik-krogh Oct 20, 2020
15fe0bc
aggregate the tests in library-tests/Comprehensions into a single .ql…
erik-krogh Oct 20, 2020
2707531
aggregate the tests in library-tests/Closure into a single .ql file
erik-krogh Oct 20, 2020
90bb38b
aggregate the tests in library-tests/variables into a single .ql file
erik-krogh Oct 20, 2020
036187c
aggregate the tests in library-tests/Util into a single .ql file
erik-krogh Oct 20, 2020
f8d3822
aggregate the tests in library-tests/TypeInference/AnalyzedModule int…
erik-krogh Oct 20, 2020
3e3e9de
aggregate the tests in library-tests/TaintBarriers into a single .ql …
erik-krogh Oct 20, 2020
6b86b53
aggregate the tests in library-tests/LocalObjects into a single .ql file
erik-krogh Oct 20, 2020
234cb5c
aggregate the tests in library-tests/JSLint into a single .ql file
erik-krogh Oct 20, 2020
1096cb0
aggregate the tests in library-tests/InterProceduralFlow into a singl…
erik-krogh Oct 20, 2020
05d4858
autoformat
erik-krogh Oct 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 0 additions & 11 deletions javascript/ql/test/library-tests/AMD/AmdModule.expected

This file was deleted.

4 changes: 0 additions & 4 deletions javascript/ql/test/library-tests/AMD/AmdModule.ql

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions javascript/ql/test/library-tests/AMD/AmdModuleDefinition.ql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions javascript/ql/test/library-tests/AMD/AmdModuleExpr.expected

This file was deleted.

4 changes: 0 additions & 4 deletions javascript/ql/test/library-tests/AMD/AmdModuleExpr.ql

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions javascript/ql/test/library-tests/AMD/AmdModule_exports.expected

This file was deleted.

5 changes: 0 additions & 5 deletions javascript/ql/test/library-tests/AMD/AmdModule_exports.ql

This file was deleted.

107 changes: 107 additions & 0 deletions javascript/ql/test/library-tests/AMD/tests.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
amoModule_exports
| a.js:1:1:3:3 | <toplevel> | foo | a.js:2:19:2:20 | 42 |
| dir/b.js:1:1:3:3 | <toplevel> | bar | dir/b.js:2:10:2:11 | 42 |
| lib/a.js:1:1:3:3 | <toplevel> | foo | lib/a.js:2:19:2:20 | 42 |
| lib/foo.js:1:1:4:0 | <toplevel> | foo | lib/foo.js:2:10:2:11 | 23 |
| lib/nested/a.js:1:1:3:3 | <toplevel> | foo | lib/nested/a.js:2:19:2:20 | 42 |
| tst2.js:1:1:3:3 | <toplevel> | foo | tst2.js:2:19:2:20 | 42 |
| tst3.js:1:1:3:3 | <toplevel> | foo | tst3.js:2:43:2:44 | 42 |
| tst4.js:1:1:11:3 | <toplevel> | bar | tst4.js:9:14:9:18 | b.bar |
| tst4.js:1:1:11:3 | <toplevel> | foo | tst4.js:8:14:8:18 | a.foo |
| tst5.js:1:1:6:3 | <toplevel> | bar | tst5.js:4:14:4:16 | bar |
| tst5.js:1:1:6:3 | <toplevel> | foo | tst5.js:3:14:3:18 | a.foo |
| tst.js:1:1:6:3 | <toplevel> | bar | tst.js:4:14:4:18 | b.bar |
| tst.js:1:1:6:3 | <toplevel> | foo | tst.js:3:14:3:18 | a.foo |
| umd.js:1:1:14:4 | <toplevel> | bar | umd.js:11:14:11:18 | a.foo |
| umd.js:1:1:14:4 | <toplevel> | foo | umd.js:12:14:12:18 | b.bar |
amdModule
| a.js:1:1:3:3 | <toplevel> | a.js:1:1:3:2 | define( ... 2 };\\n}) |
| dir/b.js:1:1:3:3 | <toplevel> | dir/b.js:1:1:3:2 | define( ... : 42\\n}) |
| lib/a.js:1:1:3:3 | <toplevel> | lib/a.js:1:1:3:2 | define( ... 2 };\\n}) |
| lib/foo.js:1:1:4:0 | <toplevel> | lib/foo.js:1:1:3:2 | define( ... : 23\\n}) |
| lib/nested/a.js:1:1:3:3 | <toplevel> | lib/nested/a.js:1:1:3:2 | define( ... 2 };\\n}) |
| tst2.js:1:1:3:3 | <toplevel> | tst2.js:1:1:3:2 | define( ... 42;\\n}) |
| tst3.js:1:1:3:3 | <toplevel> | tst3.js:1:1:3:2 | define( ... 42;\\n}) |
| tst4.js:1:1:11:3 | <toplevel> | tst4.js:1:1:11:2 | define( ... };\\n}) |
| tst5.js:1:1:6:3 | <toplevel> | tst5.js:1:1:6:2 | define( ... };\\n}) |
| tst.js:1:1:6:3 | <toplevel> | tst.js:1:1:6:2 | define( ... };\\n}) |
| umd.js:1:1:14:4 | <toplevel> | umd.js:4:9:4:43 | define( ... actory) |
getDependencyParameter
| tst2.js:1:1:3:2 | define( ... 42;\\n}) | exports | tst2.js:1:30:1:36 | exports |
| tst4.js:1:1:11:2 | define( ... };\\n}) | a.js | tst4.js:6:20:6:20 | a |
| tst4.js:1:1:11:2 | define( ... };\\n}) | foo | tst4.js:6:23:6:23 | b |
| tst4.js:1:1:11:2 | define( ... };\\n}) | nested/a | tst4.js:6:26:6:32 | exports |
| tst5.js:1:1:6:2 | define( ... };\\n}) | ./a | tst5.js:1:37:1:37 | a |
| tst5.js:1:1:6:2 | define( ... };\\n}) | ./dir/b | tst5.js:1:40:1:44 | {bar} |
| tst.js:1:1:6:2 | define( ... };\\n}) | ./a | tst.js:1:37:1:37 | a |
| tst.js:1:1:6:2 | define( ... };\\n}) | ./dir/b | tst.js:1:40:1:40 | b |
| umd.js:4:9:4:43 | define( ... actory) | ./a | umd.js:9:19:9:19 | a |
| umd.js:4:9:4:43 | define( ... actory) | ./dir/b | umd.js:9:22:9:22 | b |
amdModuleDefinition
| a.js:1:1:3:2 | define( ... 2 };\\n}) | a.js:1:8:3:1 | functio ... 42 };\\n} |
| dir/b.js:1:1:3:2 | define( ... : 42\\n}) | dir/b.js:1:8:3:1 | {\\n bar: 42\\n} |
| lib/a.js:1:1:3:2 | define( ... 2 };\\n}) | lib/a.js:1:8:3:1 | functio ... 42 };\\n} |
| lib/foo.js:1:1:3:2 | define( ... : 23\\n}) | lib/foo.js:1:8:3:1 | {\\n foo: 23\\n} |
| lib/nested/a.js:1:1:3:2 | define( ... 2 };\\n}) | lib/nested/a.js:1:8:3:1 | functio ... 42 };\\n} |
| tst2.js:1:1:3:2 | define( ... 42;\\n}) | tst2.js:1:21:3:1 | functio ... = 42;\\n} |
| tst3.js:1:1:3:2 | define( ... 42;\\n}) | tst3.js:1:8:3:1 | functio ... = 42;\\n} |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:6:11:11:1 | functio ... };\\n} |
| tst5.js:1:1:6:2 | define( ... };\\n}) | tst5.js:1:28:6:1 | functio ... };\\n} |
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:1:28:6:1 | functio ... };\\n} |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:9:9:14:1 | functio ... };\\n} |
amdModuleDependencies
| tst2.js:1:1:3:2 | define( ... 42;\\n}) | tst2.js:1:9:1:17 | 'exports' |
| tst3.js:1:1:3:2 | define( ... 42;\\n}) | tst3.js:2:21:2:25 | './a' |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:2:9:2:14 | 'a.js' |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:3:9:3:13 | 'foo' |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:4:9:4:18 | 'nested/a' |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:5:9:5:20 | 'lib/foo.js' |
| tst5.js:1:1:6:2 | define( ... };\\n}) | tst5.js:1:9:1:13 | './a' |
| tst5.js:1:1:6:2 | define( ... };\\n}) | tst5.js:1:16:1:24 | './dir/b' |
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:1:9:1:13 | './a' |
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:1:16:1:24 | './dir/b' |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:4:17:4:21 | './a' |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:4:24:4:32 | './dir/b' |
amdModuleExportedSymbol
| a.js:1:1:3:3 | <toplevel> | foo |
| dir/b.js:1:1:3:3 | <toplevel> | bar |
| lib/a.js:1:1:3:3 | <toplevel> | foo |
| lib/foo.js:1:1:4:0 | <toplevel> | foo |
| lib/nested/a.js:1:1:3:3 | <toplevel> | foo |
| tst2.js:1:1:3:3 | <toplevel> | foo |
| tst3.js:1:1:3:3 | <toplevel> | foo |
| tst4.js:1:1:11:3 | <toplevel> | bar |
| tst4.js:1:1:11:3 | <toplevel> | foo |
| tst5.js:1:1:6:3 | <toplevel> | bar |
| tst5.js:1:1:6:3 | <toplevel> | foo |
| tst.js:1:1:6:3 | <toplevel> | bar |
| tst.js:1:1:6:3 | <toplevel> | foo |
| umd.js:1:1:14:4 | <toplevel> | bar |
| umd.js:1:1:14:4 | <toplevel> | foo |
amdModuleExpr
| a.js:1:1:3:2 | define( ... 2 };\\n}) | a.js:2:12:2:22 | { foo: 42 } | a.js:2:12:2:22 | { foo: 42 } |
| dir/b.js:1:1:3:2 | define( ... : 42\\n}) | dir/b.js:1:8:3:1 | {\\n bar: 42\\n} | dir/b.js:1:8:3:1 | {\\n bar: 42\\n} |
| lib/a.js:1:1:3:2 | define( ... 2 };\\n}) | lib/a.js:2:12:2:22 | { foo: 42 } | lib/a.js:2:12:2:22 | { foo: 42 } |
| lib/foo.js:1:1:3:2 | define( ... : 23\\n}) | lib/foo.js:1:8:3:1 | {\\n foo: 23\\n} | lib/foo.js:1:8:3:1 | {\\n foo: 23\\n} |
| lib/nested/a.js:1:1:3:2 | define( ... 2 };\\n}) | lib/nested/a.js:2:12:2:22 | { foo: 42 } | lib/nested/a.js:2:12:2:22 | { foo: 42 } |
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:7:12:10:5 | {\\n ... r\\n } | tst4.js:7:12:10:5 | {\\n ... r\\n } |
| tst5.js:1:1:6:2 | define( ... };\\n}) | tst5.js:2:12:5:5 | {\\n ... r\\n } | tst5.js:2:12:5:5 | {\\n ... r\\n } |
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:2:12:5:5 | {\\n ... r\\n } | tst.js:2:12:5:5 | {\\n ... r\\n } |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:1:18:1:24 | factory |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:9:9:14:1 | functio ... };\\n} |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:10:12:13:5 | {\\n ... r\\n } |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:1:18:1:24 | factory |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:9:9:14:1 | functio ... };\\n} |
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:10:12:13:5 | {\\n ... r\\n } |
amdModuleImportedModule
| tst3.js:1:1:3:3 | <toplevel> | tst3.js:2:21:2:25 | './a' | a.js:1:1:3:3 | <toplevel> |
| tst4.js:1:1:11:3 | <toplevel> | tst4.js:3:9:3:13 | 'foo' | lib/foo.js:1:1:4:0 | <toplevel> |
| tst4.js:1:1:11:3 | <toplevel> | tst4.js:4:9:4:18 | 'nested/a' | lib/nested/a.js:1:1:3:3 | <toplevel> |
| tst4.js:1:1:11:3 | <toplevel> | tst4.js:5:9:5:20 | 'lib/foo.js' | lib/foo.js:1:1:4:0 | <toplevel> |
| tst5.js:1:1:6:3 | <toplevel> | tst5.js:1:9:1:13 | './a' | a.js:1:1:3:3 | <toplevel> |
| tst5.js:1:1:6:3 | <toplevel> | tst5.js:1:16:1:24 | './dir/b' | dir/b.js:1:1:3:3 | <toplevel> |
| tst.js:1:1:6:3 | <toplevel> | tst.js:1:9:1:13 | './a' | a.js:1:1:3:3 | <toplevel> |
| tst.js:1:1:6:3 | <toplevel> | tst.js:1:16:1:24 | './dir/b' | dir/b.js:1:1:3:3 | <toplevel> |
| umd.js:1:1:14:4 | <toplevel> | umd.js:4:17:4:21 | './a' | a.js:1:1:3:3 | <toplevel> |
| umd.js:1:1:14:4 | <toplevel> | umd.js:4:24:4:32 | './dir/b' | dir/b.js:1:1:3:3 | <toplevel> |
31 changes: 31 additions & 0 deletions javascript/ql/test/library-tests/AMD/tests.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import javascript

query predicate amoModule_exports(Module m, string name, DataFlow::Node exportValue) {
exportValue = m.getAnExportedValue(name)
}

query predicate amdModule(AmdModule m, AmdModuleDefinition def) { m.getDefine() = def }

query Parameter getDependencyParameter(AmdModuleDefinition mod, string name) {
result = mod.getDependencyParameter(name)
}

query predicate amdModuleDefinition(AmdModuleDefinition mod, DataFlow::SourceNode factory) {
mod.getFactoryNode() = factory
}

query predicate amdModuleDependencies(AmdModuleDefinition mod, PathExpr dependency) {
dependency = mod.getADependency()
}

query predicate amdModuleExportedSymbol(AmdModule m, string sym) { sym = m.getAnExportedSymbol() }

query predicate amdModuleExpr(AmdModuleDefinition d, Expr expr, DataFlow::SourceNode modSrc) {
expr = d.getModuleExpr() and
modSrc = d.getAModuleSource()
}

query predicate amdModuleImportedModule(AmdModule m, Import i, Module imported) {
i = m.getAnImport() and
imported = i.getImportedModule()
}

This file was deleted.

5 changes: 0 additions & 5 deletions javascript/ql/test/library-tests/ClassNode/FieldStep.ql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading