aggregate the tests in library-tests/frameworks/Firebase into a single .ql file

This commit is contained in:
Erik Krogh Kristensen
2020-10-15 15:17:55 +02:00
parent a3e6054ee5
commit 771cab233e
13 changed files with 38 additions and 41 deletions

View File

@@ -1,3 +0,0 @@
import javascript
select Firebase::Database::ref()

View File

@@ -1,10 +0,0 @@
| tst.js:5:1:8:2 | fb.data ... ent;\\n}) |
| tst.js:5:38:5:38 | x |
| tst.js:10:1:13:2 | admin.d ... ent;\\n}) |
| tst.js:10:41:10:41 | x |
| tst.js:15:38:15:38 | x |
| tst.js:20:38:20:38 | x |
| tst.js:21:3:21:10 | x.before |
| tst.js:22:3:22:9 | x.after |
| tst.js:50:12:50:48 | this.ge ... value') |
| tst.js:60:1:60:39 | new Fir ... em('x') |

View File

@@ -1,3 +0,0 @@
import javascript
select Firebase::snapshot()

View File

@@ -1,6 +0,0 @@
| tst.js:6:3:6:9 | x.val() |
| tst.js:11:3:11:9 | x.val() |
| tst.js:16:3:16:9 | x.val() |
| tst.js:21:3:21:16 | x.before.val() |
| tst.js:22:3:22:15 | x.after.val() |
| tst.js:61:36:61:36 | x |

View File

@@ -1,4 +0,0 @@
import javascript
from Firebase::FirebaseVal val
select val

View File

@@ -1 +0,0 @@
| tst.js:72:52:72:65 | req.params.foo |

View File

@@ -1,4 +0,0 @@
import javascript
from HTTP::RequestInputAccess ria
select ria

View File

@@ -1 +0,0 @@
| tst.js:72:52:72:65 | req.params.foo |

View File

@@ -1,4 +0,0 @@
import javascript
from HTTP::ResponseSendArgument send
select send

View File

@@ -1 +0,0 @@
| tst.js:72:27:72:69 | (req, r ... foo); } |

View File

@@ -1,4 +0,0 @@
import javascript
from HTTP::RouteHandler rh
select rh

View File

@@ -1,3 +1,4 @@
firebaseRef
| src/import_assign.ts:4:3:4:17 | db.ref("hello") |
| src/import_named.ts:4:3:4:17 | db.ref("hello") |
| src/import_star.ts:4:3:4:17 | db.ref("hello") |
@@ -18,3 +19,27 @@
| tst.js:54:5:54:37 | this.fi ... ef('x') |
| tst.js:58:1:58:61 | new Fir ... /news') |
| tst.js:59:1:59:38 | new Fir ... /news') |
firebaseSnapshot
| tst.js:5:1:8:2 | fb.data ... ent;\\n}) |
| tst.js:5:38:5:38 | x |
| tst.js:10:1:13:2 | admin.d ... ent;\\n}) |
| tst.js:10:41:10:41 | x |
| tst.js:15:38:15:38 | x |
| tst.js:20:38:20:38 | x |
| tst.js:21:3:21:10 | x.before |
| tst.js:22:3:22:9 | x.after |
| tst.js:50:12:50:48 | this.ge ... value') |
| tst.js:60:1:60:39 | new Fir ... em('x') |
firebaseVal
| tst.js:6:3:6:9 | x.val() |
| tst.js:11:3:11:9 | x.val() |
| tst.js:16:3:16:9 | x.val() |
| tst.js:21:3:21:16 | x.before.val() |
| tst.js:22:3:22:15 | x.after.val() |
| tst.js:61:36:61:36 | x |
requestInputAccess
| tst.js:72:52:72:65 | req.params.foo |
responseSendArgument
| tst.js:72:52:72:65 | req.params.foo |
routeHandler
| tst.js:72:27:72:69 | (req, r ... foo); } |

View File

@@ -0,0 +1,13 @@
import javascript
query predicate firebaseRef(DataFlow::SourceNode ref) { ref = Firebase::Database::ref() }
query predicate firebaseSnapshot(DataFlow::SourceNode snap) { snap = Firebase::snapshot() }
query predicate firebaseVal(Firebase::FirebaseVal val) { any() }
query predicate requestInputAccess(HTTP::RequestInputAccess acc) { any() }
query predicate responseSendArgument(HTTP::ResponseSendArgument send) { any() }
query predicate routeHandler(HTTP::RouteHandler handler) { any() }