diff --git a/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.expected b/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.expected deleted file mode 100644 index b58296bf9947..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.expected +++ /dev/null @@ -1,9 +0,0 @@ -| src/cookie-parser.js:3:1:3:23 | session ... key-1") | src/cookie-parser.js:3:9:3:22 | "secret-key-1" | -| src/cookie-parser.js:5:1:5:41 | session ... ey-3"]) | src/cookie-parser.js:5:10:5:23 | "secret-key-2" | -| src/cookie-parser.js:5:1:5:41 | session ... ey-3"]) | src/cookie-parser.js:5:26:5:39 | "secret-key-3" | -| src/cookie-session.js:3:1:5:2 | session ... y-1"\\n}) | src/cookie-session.js:4:13:4:26 | "secret-key-1" | -| src/cookie-session.js:7:1:9:2 | session ... -3"]\\n}) | src/cookie-session.js:8:12:8:25 | "secret-key-2" | -| src/cookie-session.js:7:1:9:2 | session ... -3"]\\n}) | src/cookie-session.js:8:28:8:41 | "secret-key-3" | -| src/express-session.js:3:1:5:2 | session ... y-1"\\n}) | src/express-session.js:4:13:4:26 | "secret-key-1" | -| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | src/express-session.js:8:14:8:27 | "secret-key-2" | -| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | src/express-session.js:8:30:8:43 | "secret-key-3" | diff --git a/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.ql b/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.ql deleted file mode 100644 index a2b9e28bdef5..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from HTTP::CookieMiddlewareInstance instance -select instance, instance.getASecretKey() diff --git a/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.qll b/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.qll new file mode 100644 index 000000000000..2f69ec905aec --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/CookieMiddlewareInstance.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_CookieMiddlewareInstance( + HTTP::CookieMiddlewareInstance instance, DataFlow::Node res +) { + res = instance.getASecretKey() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/Credentials.expected b/javascript/ql/test/library-tests/frameworks/Express/Credentials.expected deleted file mode 100644 index 2f74139c4ccb..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/Credentials.expected +++ /dev/null @@ -1,2 +0,0 @@ -| src/auth.js:4:30:4:36 | 'admin' | user name | -| src/auth.js:4:39:4:48 | 'passw0rd' | password | diff --git a/javascript/ql/test/library-tests/frameworks/Express/Credentials.ql b/javascript/ql/test/library-tests/frameworks/Express/Credentials.ql deleted file mode 100644 index 638bd465401b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/Credentials.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::Credentials cr -select cr, cr.getCredentialsKind() diff --git a/javascript/ql/test/library-tests/frameworks/Express/Credentials.qll b/javascript/ql/test/library-tests/frameworks/Express/Credentials.qll new file mode 100644 index 000000000000..d0a9e045a79d --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/Credentials.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_Credentials(Express::Credentials cr, string res) { + res = cr.getCredentialsKind() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.expected b/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.expected deleted file mode 100644 index a5532e8d86bf..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.expected +++ /dev/null @@ -1,2 +0,0 @@ -| src/express-session.js:3:1:5:2 | session ... y-1"\\n}) | secret | src/express-session.js:4:13:4:26 | "secret-key-1" | -| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | secret | src/express-session.js:8:13:8:44 | ["secre ... key-3"] | diff --git a/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.ql b/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.ql deleted file mode 100644 index 3018c8bc5892..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript -import semmle.javascript.frameworks.ExpressModules - -from ExpressLibraries::ExpressSession::MiddlewareInstance session, string name -select session, name, session.getOption(name) diff --git a/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.qll b/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.qll new file mode 100644 index 000000000000..b4f8a891b7db --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/ExpressSession.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_ExpressSession( + ExpressLibraries::ExpressSession::MiddlewareInstance session, string name, DataFlow::Node res +) { + res = session.getOption(name) +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.expected b/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.expected deleted file mode 100644 index 8197336f5fb9..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.expected +++ /dev/null @@ -1,5 +0,0 @@ -| src/express.js:28:3:28:16 | req.get("foo") | foo | -| src/express.js:29:3:29:19 | req.header("bar") | bar | -| src/express.js:47:3:47:17 | req.headers.baz | baz | -| src/express.js:48:3:48:10 | req.host | host | -| src/express.js:49:3:49:14 | req.hostname | host | diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.ql b/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.ql deleted file mode 100644 index a86349b65cbf..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from HTTP::RequestHeaderAccess access -select access, access.getAHeaderName() diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.qll b/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.qll new file mode 100644 index 000000000000..22d1d6aee539 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/HeaderAccess.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_HeaderAccess(HTTP::RequestHeaderAccess access, string res) { + res = access.getAHeaderName() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.expected b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.expected deleted file mode 100644 index 8e80a56f9726..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.expected +++ /dev/null @@ -1,8 +0,0 @@ -| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/responseExprs.js:19:5:19:16 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:7:37:18 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:40:16:40:30 | resArg.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.ql b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.ql deleted file mode 100644 index a3637b659831..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::HeaderDefinition hd, Express::RouteHandler rh -where rh = hd.getRouteHandler() -select hd, rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.qll b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.qll new file mode 100644 index 000000000000..45ec0af926a2 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_HeaderDefinition(HTTP::HeaderDefinition hd, Express::RouteHandler rh) { + rh = hd.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.expected b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.expected deleted file mode 100644 index a700206f0320..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.expected +++ /dev/null @@ -1 +0,0 @@ -| src/express.js:7:3:7:42 | res.hea ... plain") | content-type | text/plain | diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.ql b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.ql deleted file mode 100644 index 70350c595266..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.ql +++ /dev/null @@ -1,7 +0,0 @@ -import javascript - -from HTTP::HeaderDefinition hd, string name, string value -where - hd.defines(name, value) and - hd.getRouteHandler() instanceof Express::RouteHandler -select hd, name, value diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.qll b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.qll new file mode 100644 index 000000000000..2a82f238c294 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_defines.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_HeaderDefinition_defines(HTTP::HeaderDefinition hd, string name, string value) { + hd.defines(name, value) and hd.getRouteHandler() instanceof Express::RouteHandler +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.expected b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.expected deleted file mode 100644 index 847c3165fa9b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.expected +++ /dev/null @@ -1,3 +0,0 @@ -| src/express.js:6:3:6:45 | res.hea ... rget")) | location | -| src/express.js:7:3:7:42 | res.hea ... plain") | content-type | -| src/express.js:12:3:12:54 | arg.hea ... , true) | access-control-allow-credentials | diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.ql b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.ql deleted file mode 100644 index ed964f23b851..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::HeaderDefinition hd -where hd.getRouteHandler() instanceof Express::RouteHandler -select hd, hd.getAHeaderName() diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.qll b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.qll new file mode 100644 index 000000000000..f618f71ca342 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getAHeaderName.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_HeaderDefinition_getAHeaderName(HTTP::HeaderDefinition hd, string res) { + hd.getRouteHandler() instanceof Express::RouteHandler and res = hd.getAHeaderName() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.expected deleted file mode 100644 index 1d026575cc23..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.expected +++ /dev/null @@ -1,4 +0,0 @@ -| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:5:14:5:32 | req.param("header") | -| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:6:14:6:23 | "Location" | -| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:7:14:7:27 | "Content-Type" | -| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:12:14:12:47 | "Access ... ntials" | diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.ql deleted file mode 100644 index b41f3969a968..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::ExplicitHeaderDefinition hd -where hd.getRouteHandler() instanceof Express::RouteHandler -select hd, hd.getNameExpr() diff --git a/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.qll new file mode 100644 index 000000000000..a1db639b0218 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/HeaderDefinition_getNameExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_HeaderDefinition_getNameExpr(HTTP::ExplicitHeaderDefinition hd, Expr res) { + hd.getRouteHandler() instanceof Express::RouteHandler and res = hd.getNameExpr() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.expected b/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.expected deleted file mode 100644 index 065f4632f3c8..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.expected +++ /dev/null @@ -1 +0,0 @@ -| src/express.js:5:3:5:35 | res.red ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.ql b/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.ql deleted file mode 100644 index 7864c08a0ad5..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::RedirectInvocation red, Express::RouteHandler rh -where rh = red.getRouteHandler() -select red, rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.qll b/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.qll new file mode 100644 index 000000000000..909c37794169 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RedirectInvocation.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RedirectInvocation(HTTP::RedirectInvocation red, Express::RouteHandler rh) { + rh = red.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.expected b/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.expected deleted file mode 100644 index 44dcdc30b4f2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.expected +++ /dev/null @@ -1 +0,0 @@ -| src/express.js:23:3:23:10 | req.body | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.ql b/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.ql deleted file mode 100644 index f21597672ed1..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RequestBodyAccess rba -select rba diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.qll b/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.qll new file mode 100644 index 000000000000..6f8b39e45b83 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RequestBodyAccess.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_RequestBodyAccess(Express::RequestBodyAccess rba) { any() } diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.expected deleted file mode 100644 index 6425c04ab80d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.expected +++ /dev/null @@ -1,21 +0,0 @@ -| src/csurf-example.js:22:35:22:37 | req | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/express2.js:3:46:3:48 | req | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:4:60:4:66 | request | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express3.js:5:14:5:16 | req | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:5:35:5:37 | req | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express4.js:5:27:5:29 | req | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:5:16:5:18 | req | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:6:26:6:28 | req | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:23:3:23:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:24:3:24:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:25:3:25:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:26:3:26:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:27:3:27:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:28:3:28:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:29:3:29:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:30:3:30:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:47:3:47:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:48:3:48:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:49:3:49:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:50:3:50:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:17:5:17:7 | req | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.ql deleted file mode 100644 index 069d16b93432..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RequestExpr e -select e, e.getRouteHandler() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.qll new file mode 100644 index 000000000000..ed77515e2afe --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RequestExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RequestExpr(Express::RequestExpr e, HTTP::RouteHandler res) { + res = e.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.expected b/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.expected deleted file mode 100644 index 8c0b0b3b76c3..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.expected +++ /dev/null @@ -1,18 +0,0 @@ -| src/express3.js:5:14:5:32 | req.param("header") | parameter | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:5:35:5:50 | req.param("val") | parameter | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express4.js:5:9:5:11 | foo | parameter | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express4.js:5:14:5:21 | bar: baz | parameter | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:5:16:5:34 | req.param("target") | parameter | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:6:26:6:44 | req.param("target") | parameter | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:23:3:23:10 | req.body | body | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:24:3:24:16 | req.params.foo | parameter | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:25:3:25:15 | req.query.bar | parameter | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:26:3:26:9 | req.url | url | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:27:3:27:17 | req.originalUrl | url | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:28:3:28:16 | req.get("foo") | header | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:29:3:29:19 | req.header("bar") | header | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:30:3:30:13 | req.cookies | cookie | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:47:3:47:17 | req.headers.baz | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:48:3:48:10 | req.host | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:49:3:49:14 | req.hostname | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/express.js:50:3:50:32 | req.hea ... erName] | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.ql b/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.ql deleted file mode 100644 index 551562c1fb47..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::RequestInputAccess ria, Express::RouteHandler rh -where ria.getRouteHandler() = rh -select ria, ria.getKind(), rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.qll b/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.qll new file mode 100644 index 000000000000..c27020e2aa1d --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RequestInputAccess.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RequestInputAccess( + HTTP::RequestInputAccess ria, string res0, Express::RouteHandler rh +) { + ria.getRouteHandler() = rh and res0 = ria.getKind() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.expected b/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.expected deleted file mode 100644 index a5319ec4dcce..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.expected +++ /dev/null @@ -1,5 +0,0 @@ -| src/csurf-example.js:22:35:22:49 | req.csrfToken() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:26:12:26:42 | 'csrf w ... t here' | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:33:14:33:34 | 'no csr ... t here' | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/express3.js:6:12:6:16 | "val" | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express.js:17:14:17:23 | "Go away." | src/express.js:16:19:18:3 | functio ... ");\\n } | diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.ql b/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.ql deleted file mode 100644 index 8d2674c4c78b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::ResponseBody rb, Express::RouteHandler rh -where rb.getRouteHandler() = rh -select rb, rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.qll b/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.qll new file mode 100644 index 000000000000..db5718744905 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/ResponseBody.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_ResponseBody(HTTP::ResponseBody rb, Express::RouteHandler rh) { + rb.getRouteHandler() = rh +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.expected deleted file mode 100644 index 6fca468afb06..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.expected +++ /dev/null @@ -1,68 +0,0 @@ -| src/csurf-example.js:22:3:22:5 | res | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:26:3:26:5 | res | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:26:3:26:43 | res.sen ... here') | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:33:5:33:7 | res | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:33:5:33:35 | res.sen ... here') | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/express2.js:3:46:3:53 | req, res | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:3:51:3:53 | res | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:4:60:4:74 | request, result | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express2.js:4:69:4:74 | result | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express3.js:5:3:5:5 | res | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:6:3:6:5 | res | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:6:3:6:17 | res.send("val") | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express.js:5:3:5:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:6:3:6:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:7:3:7:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:8:7:8:9 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:12:3:12:5 | arg | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:17:5:17:7 | res | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:17:5:17:24 | res.send("Go away.") | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:31:3:31:5 | res | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:31:3:31:26 | res.coo ... 'bar') | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/responseExprs.js:5:5:5:8 | res1 | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:8:5:8:8 | res2 | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:11:5:11:8 | res3 | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:14:5:14:8 | res4 | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:19:5:19:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:19:5:19:16 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:20:5:20:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:20:5:20:20 | res.attachment() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:21:5:21:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:21:5:21:21 | res.clearCookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:22:5:22:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:22:5:22:21 | res.contentType() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:23:5:23:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:23:5:23:16 | res.cookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:24:5:24:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:24:5:24:16 | res.format() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:25:5:25:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:25:5:25:16 | res.header() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:26:5:26:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:26:5:26:15 | res.links() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:27:5:27:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:27:5:27:18 | res.location() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:28:5:28:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:28:5:28:14 | res.send() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:29:5:29:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:29:5:29:20 | res.sendStatus() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:30:5:30:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:30:5:30:13 | res.set() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:31:5:31:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:31:5:31:16 | res.status() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:32:5:32:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:32:5:32:14 | res.type() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:33:5:33:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:33:5:33:14 | res.vary() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:35:5:35:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:35:5:35:16 | res.status() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:35:5:35:23 | res.status().send() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:5:37:19 | f(res.append()) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:7:37:9 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:37:7:37:18 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:40:16:40:21 | resArg | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/responseExprs.js:40:16:40:30 | resArg.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.ql deleted file mode 100644 index 223046f0697b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::ResponseExpr e -select e, e.getRouteHandler() diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.qll new file mode 100644 index 000000000000..25356cfd48cb --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/ResponseExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_ResponseExpr(Express::ResponseExpr e, HTTP::RouteHandler res) { + res = e.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.expected b/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.expected deleted file mode 100644 index cc568178ad38..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.expected +++ /dev/null @@ -1,4 +0,0 @@ -| src/csurf-example.js:26:12:26:42 | 'csrf w ... t here' | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:33:14:33:34 | 'no csr ... t here' | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/express3.js:6:12:6:16 | "val" | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express.js:17:14:17:23 | "Go away." | src/express.js:16:19:18:3 | functio ... ");\\n } | diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.ql b/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.ql deleted file mode 100644 index 2a7f53e9aa30..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::ResponseSendArgument send, Express::RouteHandler rh -where rh = send.getRouteHandler() -select send, rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.qll b/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.qll new file mode 100644 index 000000000000..fec7829f284e --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/ResponseSendArgument.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_ResponseSendArgument(HTTP::ResponseSendArgument send, Express::RouteHandler rh) { + rh = send.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.expected deleted file mode 100644 index 19be0e277f68..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.expected +++ /dev/null @@ -1,2 +0,0 @@ -| src/route.js:4:1:4:31 | router. ... er_id') | src/route.js:2:14:2:29 | express.Router() | -| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:2:14:2:29 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.ql deleted file mode 100644 index 1faa03ebf48e..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteExpr e -select e, e.getRouter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.qll new file mode 100644 index 000000000000..bc8010494fd3 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteExpr(Express::RouteExpr e, Express::RouterDefinition res) { + res = e.getRouter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.expected deleted file mode 100644 index babfdaa6bfa1..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.expected +++ /dev/null @@ -1,23 +0,0 @@ -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:28:20:30 | req | src/csurf-example.js:20:33:20:35 | res | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:32:25:34 | req | src/csurf-example.js:25:37:25:39 | res | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:40:32:42 | req | src/csurf-example.js:32:45:32:47 | res | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:36:39:38 | req | src/csurf-example.js:39:41:39:43 | res | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:37:40:39 | req | src/csurf-example.js:40:42:40:44 | res | -| src/exportedHandler.js:1:19:1:55 | functio ... res) {} | src/exportedHandler.js:1:44:1:46 | req | src/exportedHandler.js:1:49:1:51 | res | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:34:3:36 | req | src/express2.js:3:39:3:41 | res | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:41:4:47 | request | src/express2.js:4:50:4:55 | result | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:32:4:34 | req | src/express3.js:4:37:4:39 | res | -| src/express3.js:10:12:10:32 | functio ... res){} | src/express3.js:10:22:10:24 | req | src/express3.js:10:27:10:29 | res | -| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:32:4:34 | req | src/express4.js:4:37:4:39 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:32:4:34 | req | src/express.js:4:37:4:39 | res | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:28:16:30 | req | src/express.js:16:33:16:35 | res | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:39:22:41 | req | src/express.js:22:44:22:46 | res | -| src/express.js:37:12:37:32 | functio ... res){} | src/express.js:37:22:37:24 | req | src/express.js:37:27:37:29 | res | -| src/express.js:42:12:42:28 | (req, res) => f() | src/express.js:42:13:42:15 | req | src/express.js:42:18:42:20 | res | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:31:46:33 | req | src/express.js:46:36:46:38 | res | -| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:32:4:34 | req | src/responseExprs.js:4:37:4:40 | res1 | -| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:32:7:34 | req | src/responseExprs.js:7:37:7:40 | res2 | -| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:39:10:41 | req | src/responseExprs.js:10:44:10:47 | res3 | -| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:32:13:34 | req | src/responseExprs.js:13:37:13:40 | res4 | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:39:16:41 | req | src/responseExprs.js:16:44:16:46 | res | -| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:5:21:5:23 | req | src/route.js:5:26:5:28 | res | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.ql deleted file mode 100644 index 1e345dc7ce9c..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandler rh -select rh, rh.getRequestParameter(), rh.getResponseParameter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.qll new file mode 100644 index 000000000000..3641504de53f --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandler( + Express::RouteHandler rh, SimpleParameter res0, SimpleParameter res1 +) { + res0 = rh.getRequestParameter() and res1 = rh.getResponseParameter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.expected deleted file mode 100644 index e288c556b8c4..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.expected +++ /dev/null @@ -1,33 +0,0 @@ -| src/auth.js:4:9:4:52 | basicAu ... rd' }}) | src/auth.js:4:1:4:53 | app.use ... d' }})) | false | -| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:13:1:13:20 | app.use('/api', api) | false | -| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | false | -| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | false | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | false | -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | true | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | true | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | true | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | true | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | true | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:1:3:56 | router. ... res }) | true | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:3:1:4:77 | router. ... sult }) | true | -| src/express2.js:6:9:6:14 | router | src/express2.js:6:1:6:15 | app.use(router) | false | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:1:7:2 | app.get ... l");\\n}) | true | -| src/express3.js:12:9:12:20 | getHandler() | src/express3.js:12:1:12:21 | app.use ... dler()) | false | -| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | true | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:1:9:2 | app.get ... es);\\n}) | true | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:3:18:4 | router. ... );\\n }) | true | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:1:32:2 | app.pos ... r');\\n}) | true | -| src/express.js:34:14:34:52 | require ... handler | src/express.js:34:1:34:53 | app.get ... andler) | true | -| src/express.js:39:9:39:20 | getHandler() | src/express.js:39:1:39:21 | app.use ... dler()) | false | -| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:44:1:44:26 | app.use ... dler()) | false | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:1:51:2 | app.pos ... me];\\n}) | true | -| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | true | -| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | true | -| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | true | -| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | true | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | true | -| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:4:1:5:39 | router. ... xt) {}) | true | -| src/subrouter.js:4:19:4:25 | protect | src/subrouter.js:4:1:4:26 | app.use ... rotect) | false | -| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | false | -| src/subrouter.js:9:27:9:34 | handler1 | src/subrouter.js:9:3:9:35 | router. ... ndler1) | true | -| src/subrouter.js:10:33:10:40 | handler2 | src/subrouter.js:10:3:10:41 | router. ... ndler2) | true | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.ql deleted file mode 100644 index 9b845542f545..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr rhe, boolean isLast -where if rhe.isLastHandler() then isLast = true else isLast = false -select rhe, rhe.getSetup(), isLast diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.qll new file mode 100644 index 000000000000..a6c008294dd0 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr.qll @@ -0,0 +1,8 @@ +import javascript + +query predicate test_RouteHandlerExpr( + Express::RouteHandlerExpr rhe, Express::RouteSetup res0, boolean isLast +) { + (if rhe.isLastHandler() then isLast = true else isLast = false) and + res0 = rhe.getSetup() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.expected deleted file mode 100644 index e4bd32539d9a..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.expected +++ /dev/null @@ -1,20 +0,0 @@ -| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.ql deleted file mode 100644 index 448ea671a3ee..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr expr -select expr, expr.getAMatchingAncestor() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.qll new file mode 100644 index 000000000000..b42d063bbfae --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAMatchingAncestor.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandlerExpr_getAMatchingAncestor( + Express::RouteHandlerExpr expr, Express::RouteHandlerExpr res +) { + res = expr.getAMatchingAncestor() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.expected deleted file mode 100644 index b3eda966a09b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.expected +++ /dev/null @@ -1,3 +0,0 @@ -| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/express2.js:6:9:6:14 | router | src/express2.js:2:14:2:23 | e.Router() | -| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.ql deleted file mode 100644 index 305737925b1e..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr expr -select expr, expr.getAsSubRouter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.qll new file mode 100644 index 000000000000..3bb2799d7fbf --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getAsSubRouter.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandlerExpr_getAsSubRouter( + Express::RouteHandlerExpr expr, Express::RouterDefinition res +) { + res = expr.getAsSubRouter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.expected deleted file mode 100644 index f4805a5e53e6..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.expected +++ /dev/null @@ -1,19 +0,0 @@ -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:5:12:5:38 | functio ... ext) {} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.ql deleted file mode 100644 index b463f56d9ca5..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr rhe -select rhe, rhe.getBody() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.qll new file mode 100644 index 000000000000..962ef8aab5b4 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getBody.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandlerExpr_getBody( + Express::RouteHandlerExpr rhe, Express::RouteHandler res +) { + res = rhe.getBody() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.expected deleted file mode 100644 index b7081b75823f..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.expected +++ /dev/null @@ -1,11 +0,0 @@ -| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express.js:39:9:39:20 | getHandler() | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/subrouter.js:4:19:4:25 | protect | src/subrouter.js:5:14:5:28 | makeSubRouter() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.ql deleted file mode 100644 index a6447d47fc5a..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr expr -select expr, expr.getNextMiddleware() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.qll new file mode 100644 index 000000000000..93d7457b2f1e --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getNextMiddleware.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandlerExpr_getNextMiddleware( + Express::RouteHandlerExpr expr, Express::RouteHandlerExpr res +) { + res = expr.getNextMiddleware() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.expected deleted file mode 100644 index 63f85929c59c..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.expected +++ /dev/null @@ -1,11 +0,0 @@ -| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | -| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:4:19:4:25 | protect | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.ql deleted file mode 100644 index 1a0b494ad418..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandlerExpr expr -select expr, expr.getPreviousMiddleware() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.qll new file mode 100644 index 000000000000..a202198b2050 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandlerExpr_getPreviousMiddleware.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandlerExpr_getPreviousMiddleware( + Express::RouteHandlerExpr expr, Express::RouteHandlerExpr res +) { + res = expr.getPreviousMiddleware() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.expected deleted file mode 100644 index 453e5a96d5dc..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.expected +++ /dev/null @@ -1 +0,0 @@ -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:23:3:23:10 | req.body | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.ql deleted file mode 100644 index e49779adf94d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandler rh -select rh, rh.getARequestBodyAccess() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.qll new file mode 100644 index 000000000000..805200c7f8d3 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestBodyAccess.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteHandler_getARequestBodyAccess(Express::RouteHandler rh, Expr res) { + res = rh.getARequestBodyAccess() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.expected deleted file mode 100644 index 732a9e8391e2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.expected +++ /dev/null @@ -1,21 +0,0 @@ -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:22:35:22:37 | req | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:46:3:48 | req | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:60:4:66 | request | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:14:5:16 | req | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:35:5:37 | req | -| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:5:27:5:29 | req | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:5:16:5:18 | req | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:26:6:28 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:23:3:23:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:24:3:24:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:25:3:25:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:26:3:26:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:27:3:27:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:28:3:28:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:29:3:29:5 | req | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:30:3:30:5 | req | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:47:3:47:5 | req | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:48:3:48:5 | req | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:49:3:49:5 | req | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:50:3:50:5 | req | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:17:5:17:7 | req | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.ql deleted file mode 100644 index d5510b1bc72f..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import semmle.javascript.frameworks.Express - -from Express::RouteHandler rh -select rh, rh.getARequestExpr() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.qll new file mode 100644 index 000000000000..77cbf26c64cb --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getARequestExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteHandler_getARequestExpr(Express::RouteHandler rh, HTTP::RequestExpr res) { + res = rh.getARequestExpr() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.expected deleted file mode 100644 index d97f66a422b7..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.expected +++ /dev/null @@ -1,68 +0,0 @@ -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:22:3:22:5 | res | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:26:3:26:5 | res | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:26:3:26:43 | res.sen ... here') | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:33:5:33:7 | res | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:33:5:33:35 | res.sen ... here') | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:46:3:53 | req, res | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:51:3:53 | res | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:60:4:74 | request, result | -| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:69:4:74 | result | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:3:5:5 | res | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:3:5:51 | res.hea ... "val")) | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:6:3:6:5 | res | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:6:3:6:17 | res.send("val") | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:5:3:5:5 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:3:6:5 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:3:6:45 | res.hea ... rget")) | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:7:3:7:5 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:7:3:7:42 | res.hea ... plain") | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:8:7:8:9 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:12:3:12:5 | arg | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:12:3:12:54 | arg.hea ... , true) | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:17:5:17:7 | res | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:17:5:17:24 | res.send("Go away.") | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:31:3:31:5 | res | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:31:3:31:26 | res.coo ... 'bar') | -| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:5:5:5:8 | res1 | -| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:8:5:8:8 | res2 | -| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:11:5:11:8 | res3 | -| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:14:5:14:8 | res4 | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:19:5:19:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:19:5:19:16 | res.append() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:20:5:20:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:20:5:20:20 | res.attachment() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:21:5:21:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:21:5:21:21 | res.clearCookie() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:22:5:22:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:22:5:22:21 | res.contentType() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:23:5:23:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:23:5:23:16 | res.cookie() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:24:5:24:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:24:5:24:16 | res.format() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:25:5:25:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:25:5:25:16 | res.header() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:26:5:26:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:26:5:26:15 | res.links() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:27:5:27:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:27:5:27:18 | res.location() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:28:5:28:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:28:5:28:14 | res.send() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:29:5:29:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:29:5:29:20 | res.sendStatus() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:30:5:30:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:30:5:30:13 | res.set() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:31:5:31:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:31:5:31:16 | res.status() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:32:5:32:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:32:5:32:14 | res.type() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:33:5:33:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:33:5:33:14 | res.vary() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:7 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:16 | res.status() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:23 | res.status().send() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:5:37:19 | f(res.append()) | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:7:37:9 | res | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:7:37:18 | res.append() | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:40:16:40:21 | resArg | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:40:16:40:30 | resArg.append() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.ql deleted file mode 100644 index a26f8223b37d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import semmle.javascript.frameworks.Express - -from Express::RouteHandler rh -select rh, rh.getAResponseExpr() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.qll new file mode 100644 index 000000000000..499f53fc7df4 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteHandler_getAResponseExpr(Express::RouteHandler rh, HTTP::ResponseExpr res) { + res = rh.getAResponseExpr() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.expected deleted file mode 100644 index 2813604773d7..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.expected +++ /dev/null @@ -1,3 +0,0 @@ -| src/express.js:4:23:9:1 | functio ... res);\\n} | access-control-allow-credentials | src/express.js:12:3:12:54 | arg.hea ... , true) | -| src/express.js:4:23:9:1 | functio ... res);\\n} | content-type | src/express.js:7:3:7:42 | res.hea ... plain") | -| src/express.js:4:23:9:1 | functio ... res);\\n} | location | src/express.js:6:3:6:45 | res.hea ... rget")) | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.ql deleted file mode 100644 index e20a86458644..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteHandler rh, string name -select rh, name, rh.getAResponseHeader(name) diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.qll new file mode 100644 index 000000000000..24f59d9b6042 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteHandler_getAResponseHeader.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouteHandler_getAResponseHeader( + Express::RouteHandler rh, string name, HTTP::HeaderDefinition res +) { + res = rh.getAResponseHeader(name) +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.expected deleted file mode 100644 index 8112a1636a96..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.expected +++ /dev/null @@ -1,17 +0,0 @@ -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | false | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | false | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:7:11:7:19 | express() | false | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | false | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | false | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:5:11:5:13 | e() | false | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | false | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | false | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | false | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | false | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | false | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | false | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.ql deleted file mode 100644 index 5be05262c6b2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from Express::RouteSetup rs, boolean isUseCall -where if rs.isUseCall() then isUseCall = true else isUseCall = false -select rs, rs.getServer(), isUseCall diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.qll new file mode 100644 index 000000000000..d291a319a79f --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup.qll @@ -0,0 +1,6 @@ +import javascript + +query predicate test_RouteSetup(Express::RouteSetup rs, Expr res0, boolean isUseCall) { + (if rs.isUseCall() then isUseCall = true else isUseCall = false) and + res0 = rs.getServer() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.expected deleted file mode 100644 index 7ed8331c31de..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.expected +++ /dev/null @@ -1,39 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:10:11:10:27 | createApiRouter() | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:2:14:2:23 | e.Router() | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:10:12:10:32 | functio ... res){} | -| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:34:1:34:53 | app.get ... andler) | src/exportedHandler.js:1:19:1:55 | functio ... res) {} | -| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | -| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:37:12:37:32 | functio ... res){} | -| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:42:12:42:28 | (req, res) => f() | -| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:8:16:8:31 | express.Router() | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.ql deleted file mode 100644 index 1ddfa07187c3..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup r -select r, r.getARouteHandler() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.qll new file mode 100644 index 000000000000..e43cb106554e --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandler.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getARouteHandler(Express::RouteSetup r, DataFlow::SourceNode res) { + res = r.getARouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.expected deleted file mode 100644 index e788350ad5f2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.expected +++ /dev/null @@ -1,33 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | -| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.ql deleted file mode 100644 index bf7edf69b593..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup r -select r, r.getARouteHandlerExpr() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.qll new file mode 100644 index 000000000000..605747a2581b --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getARouteHandlerExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getARouteHandlerExpr(Express::RouteSetup r, Expr res) { + res = r.getARouteHandlerExpr() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.expected deleted file mode 100644 index e788350ad5f2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.expected +++ /dev/null @@ -1,33 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | -| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.ql deleted file mode 100644 index bff77269434e..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup r -select r, r.getLastRouteHandlerExpr() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.qll new file mode 100644 index 000000000000..fd21c22a11e1 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getLastRouteHandlerExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getLastRouteHandlerExpr(Express::RouteSetup r, Expr res) { + res = r.getLastRouteHandlerExpr() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.expected deleted file mode 100644 index ef656f126633..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.expected +++ /dev/null @@ -1,21 +0,0 @@ -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | GET | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | POST | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | POST | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | GET | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | POST | -| src/express2.js:3:1:3:56 | router. ... res }) | GET | -| src/express2.js:3:1:4:77 | router. ... sult }) | POST | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | GET | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | GET | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | GET | -| src/express.js:16:3:18:4 | router. ... );\\n }) | GET | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | POST | -| src/express.js:34:1:34:53 | app.get ... andler) | GET | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | POST | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | GET | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | GET | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | GET | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | GET | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | POST | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | POST | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | POST | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.ql deleted file mode 100644 index 4916119a915d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup rs -select rs, rs.getRequestMethod() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.qll new file mode 100644 index 000000000000..48b0477a7105 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRequestMethod.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getRequestMethod(Express::RouteSetup rs, HTTP::RequestMethodName res) { + res = rs.getRequestMethod() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.expected deleted file mode 100644 index 61ae5da20308..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.expected +++ /dev/null @@ -1,33 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | 0 | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | 0 | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | 0 | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | 0 | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | 0 | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | 0 | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | 0 | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | 0 | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | 0 | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | 0 | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/express2.js:3:1:3:56 | router. ... res }) | 0 | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express2.js:3:1:4:77 | router. ... sult }) | 0 | src/express2.js:4:32:4:76 | functio ... esult } | -| src/express2.js:6:1:6:15 | app.use(router) | 0 | src/express2.js:6:9:6:14 | router | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | 0 | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express3.js:12:1:12:21 | app.use ... dler()) | 0 | src/express3.js:12:9:12:20 | getHandler() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | 0 | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | 0 | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:16:3:18:4 | router. ... );\\n }) | 0 | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | 0 | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:34:1:34:53 | app.get ... andler) | 0 | src/express.js:34:14:34:52 | require ... handler | -| src/express.js:39:1:39:21 | app.use ... dler()) | 0 | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:44:1:44:26 | app.use ... dler()) | 0 | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | 0 | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | 0 | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | 0 | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | 0 | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | 0 | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | 0 | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | -| src/route.js:4:1:5:39 | router. ... xt) {}) | 0 | src/route.js:5:12:5:38 | functio ... ext) {} | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | 0 | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | 0 | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | 0 | src/subrouter.js:9:27:9:34 | handler1 | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | 0 | src/subrouter.js:10:33:10:40 | handler2 | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.ql deleted file mode 100644 index 59337046f26c..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup r, int i -select r, i, r.getRouteHandlerExpr(i) diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.qll new file mode 100644 index 000000000000..db5dccb8d005 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouteHandlerExpr.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getRouteHandlerExpr(Express::RouteSetup r, int i, Expr res) { + res = r.getRouteHandlerExpr(i) +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.expected deleted file mode 100644 index 46af44628f11..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.expected +++ /dev/null @@ -1,33 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:1:13:1:32 | require('express')() | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:2:14:2:23 | e.Router() | -| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:2:14:2:23 | e.Router() | -| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:5:11:5:13 | e() | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | -| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:2:11:2:19 | express() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | -| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:2:11:2:19 | express() | -| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:2:11:2:19 | express() | -| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:2:11:2:19 | express() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:2:14:2:29 | express.Router() | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:2:11:2:19 | express() | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:2:11:2:19 | express() | -| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:8:16:8:31 | express.Router() | -| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.ql deleted file mode 100644 index 43ef7a654ddd..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup rs -select rs, rs.getRouter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.qll new file mode 100644 index 000000000000..6511b0385edb --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getRouter.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_getRouter(Express::RouteSetup rs, Express::RouterDefinition res) { + res = rs.getRouter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.expected deleted file mode 100644 index a37c24eeeda3..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.expected +++ /dev/null @@ -1,17 +0,0 @@ -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | -| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:5:11:5:13 | e() | -| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | -| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | -| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | -| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | -| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | -| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | -| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.ql deleted file mode 100644 index 1e139c44322b..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouteSetup rs -select rs, rs.getServer() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.qll new file mode 100644 index 000000000000..fdb650230003 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_getServer.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_RouteSetup_getServer(Express::RouteSetup rs, Expr res) { res = rs.getServer() } diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.expected deleted file mode 100644 index 4f6e8ac2d925..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.expected +++ /dev/null @@ -1,12 +0,0 @@ -| src/auth.js:4:1:4:53 | app.use ... d' }})) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | -| src/express2.js:6:1:6:15 | app.use(router) | -| src/express3.js:12:1:12:21 | app.use ... dler()) | -| src/express.js:39:1:39:21 | app.use ... dler()) | -| src/express.js:44:1:44:26 | app.use ... dler()) | -| src/route.js:4:1:5:39 | router. ... xt) {}) | -| src/subrouter.js:4:1:4:26 | app.use ... rotect) | -| src/subrouter.js:5:1:5:29 | app.use ... uter()) | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.ql deleted file mode 100644 index ea1e22f14865..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from Express::RouteSetup rs -where rs.handlesAllRequestMethods() -select rs diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.qll b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.qll new file mode 100644 index 000000000000..af7e73251f17 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesAllRequestMethods.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_RouteSetup_handlesAllRequestMethods(Express::RouteSetup rs) { + rs.handlesAllRequestMethods() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.expected b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.expected deleted file mode 100644 index b5be152ad7ef..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.expected +++ /dev/null @@ -1,30 +0,0 @@ -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | -| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | -| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | -| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | -| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | -| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | -| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | -| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.ql b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.qll similarity index 69% rename from javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.ql rename to javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.qll index 73b95a52eb8b..a39f945f3cab 100644 --- a/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.ql +++ b/javascript/ql/test/library-tests/frameworks/Express/RouteSetup_handlesSameRequestMethodAs.qll @@ -1,9 +1,10 @@ import javascript -from Express::RouteSetup rs, Express::RouteSetup rs2 -where +query predicate test_RouteSetup_handlesSameRequestMethodAs( + Express::RouteSetup rs, Express::RouteSetup rs2 +) { rs.handlesSameRequestMethodAs(rs2) and rs.getLocation().getStartLine() < rs2.getLocation().getStartLine() and rs.getLocation().getFile().getBaseName() = "csurf-example.js" and rs2.getLocation().getFile().getBaseName() = "csurf-example.js" -select rs, rs2 +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.expected b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.expected deleted file mode 100644 index 7404946c819d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.expected +++ /dev/null @@ -1,13 +0,0 @@ -| es6-imported-router.js:3:1:3:12 | new Router() | -| src/auth.js:1:13:1:32 | require('express')() | -| src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/express2.js:2:14:2:23 | e.Router() | -| src/express2.js:5:11:5:13 | e() | -| src/express3.js:2:11:2:19 | express() | -| src/express4.js:2:11:2:19 | express() | -| src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:2:11:2:19 | express() | -| src/route.js:2:14:2:29 | express.Router() | -| src/subrouter.js:2:11:2:19 | express() | -| src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.ql b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.ql deleted file mode 100644 index 4d288f96c114..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouterDefinition r -select r diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.qll b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.qll new file mode 100644 index 000000000000..fd2f8b18b93f --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_RouterDefinition.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_RouterDefinition_RouterDefinition(Express::RouterDefinition r) { any() } diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.expected b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.expected deleted file mode 100644 index 7a37c4c671e5..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.expected +++ /dev/null @@ -1,17 +0,0 @@ -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:26:39:47 | functio ... res) {} | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:27:40:48 | functio ... res) {} | -| src/csurf-example.js:30:16:30:35 | new express.Router() | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | -| src/express2.js:2:14:2:23 | e.Router() | src/express2.js:3:25:3:55 | functio ... , res } | -| src/express3.js:2:11:2:19 | express() | src/express3.js:4:23:7:1 | functio ... al");\\n} | -| src/express4.js:2:11:2:19 | express() | src/express4.js:4:23:6:1 | functio ... uery;\\n} | -| src/express.js:2:11:2:19 | express() | src/express.js:4:23:9:1 | functio ... res);\\n} | -| src/express.js:2:11:2:19 | express() | src/express.js:16:19:18:3 | functio ... ");\\n } | -| src/express.js:2:11:2:19 | express() | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/express.js:2:11:2:19 | express() | src/express.js:46:22:51:1 | functio ... ame];\\n} | -| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | -| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | -| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | -| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | -| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.ql b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.ql deleted file mode 100644 index 6eff66afab4e..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouterDefinition r -select r, r.getARouteHandler() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.qll b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.qll new file mode 100644 index 000000000000..d9a5314002bb --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getARouteHandler.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouterDefinition_getARouteHandler( + Express::RouterDefinition r, HTTP::RouteHandler res +) { + res = r.getARouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.expected b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.expected deleted file mode 100644 index 8f53105ee6af..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.expected +++ /dev/null @@ -1,3 +0,0 @@ -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/express2.js:5:11:5:13 | e() | src/express2.js:2:14:2:23 | e.Router() | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.ql b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.ql deleted file mode 100644 index a98d4dd55b2c..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouterDefinition r -select r, r.getASubRouter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.qll b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.qll new file mode 100644 index 000000000000..e0dadbdb2396 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getASubRouter.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouterDefinition_getASubRouter( + Express::RouterDefinition r, Express::RouterDefinition res +) { + res = r.getASubRouter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.expected b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.expected deleted file mode 100644 index 779f7c062c75..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.expected +++ /dev/null @@ -1,6 +0,0 @@ -| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/express2.js:5:11:5:13 | e() | src/express2.js:6:9:6:14 | router | -| src/express3.js:2:11:2:19 | express() | src/express3.js:12:9:12:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:25 | getArrowHandler() | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:28 | makeSubRouter() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.ql b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.ql deleted file mode 100644 index 50ec684877bb..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouterDefinition r -select r, r.getMiddlewareStack() diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.qll b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.qll new file mode 100644 index 000000000000..ba7f8a435760 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStack.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouterDefinition_getMiddlewareStack( + Express::RouterDefinition r, Express::RouteHandlerExpr res +) { + res = r.getMiddlewareStack() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.expected b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.expected deleted file mode 100644 index fd3766cb7b38..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.expected +++ /dev/null @@ -1,96 +0,0 @@ -| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:5:1:5:0 | exit node of | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:3 | app | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:7 | app.use | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:5:16:7 | use | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:18 | bodyParser | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:29 | bodyPar ... encoded | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:20:16:29 | urlencoded | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:31:16:49 | { extended: false } | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:33:16:40 | extended | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:33:16:47 | extended: false | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:43:16:47 | false | src/csurf-example.js:13:17:13:19 | api | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:3 | app | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:7 | app.use | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:5:17:7 | use | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:9:17:20 | cookieParser | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:3 | app | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:7 | app.use | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:5:18:7 | use | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:12 | csrf | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:14:18:29 | { cookie: true } | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:16:18:21 | cookie | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:16:18:27 | cookie: true | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:24:18:27 | true | src/csurf-example.js:17:9:17:22 | cookieParser() | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:20:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:20:7 | app.get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:5:20:7 | get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:9:20:15 | '/form' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:25:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:25:8 | app.post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:5:25:8 | post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:10:25:19 | '/process' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:29:1:37:1 | functio ... outer\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:7 | app.get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:49 | app.get ... s) {}); | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:5:39:7 | get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:9:39:23 | '/form/subform' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:8 | app.post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:50 | app.pos ... s) {}); | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:5:40:8 | post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:10:40:24 | '/form/subform' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:41:1:41:0 | exit node of | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | -| src/express2.js:5:11:5:13 | e() | src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | -| src/express2.js:5:11:5:13 | e() | src/express2.js:7:1:7:0 | exit node of | src/express2.js:6:9:6:14 | router | -| src/express3.js:2:11:2:19 | express() | src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | -| src/express3.js:2:11:2:19 | express() | src/express3.js:13:1:13:0 | exit node of | src/express3.js:12:9:12:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:41:1:43:1 | functio ... f();\\n} | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:3 | app | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:7 | app.use | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:27 | app.use ... ler()); | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:5:44:7 | use | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:23 | getArrowHandler | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:1:46:3 | app | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:1:46:8 | app.post | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:1:51:3 | app.pos ... e];\\n}); | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:5:46:8 | post | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:10:46:19 | '/headers' | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | -| src/express.js:2:11:2:19 | express() | src/express.js:52:1:52:0 | exit node of | src/express.js:44:9:44:25 | getArrowHandler() | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:3 | app | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:7 | app.use | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:5:5:7 | use | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:9:5:11 | "/" | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:26 | makeSubRouter | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:4:19:4:25 | protect | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:7:1:12:1 | functio ... uter;\\n} | src/subrouter.js:5:14:5:28 | makeSubRouter() | -| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:13:1:13:0 | exit node of | src/subrouter.js:5:14:5:28 | makeSubRouter() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.ql b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.ql deleted file mode 100644 index f46dc0fa377e..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::RouterDefinition r, ControlFlowNode nd -select r, nd, r.getMiddlewareStackAt(nd) diff --git a/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.qll b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.qll new file mode 100644 index 000000000000..36b9447abf0e --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/RouterDefinition_getMiddlewareStackAt.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_RouterDefinition_getMiddlewareStackAt( + Express::RouterDefinition r, ControlFlowNode nd, Express::RouteHandlerExpr res +) { + res = r.getMiddlewareStackAt(nd) +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/SetCookie.expected b/javascript/ql/test/library-tests/frameworks/Express/SetCookie.expected deleted file mode 100644 index 13b12ca6d775..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/SetCookie.expected +++ /dev/null @@ -1,2 +0,0 @@ -| src/express.js:31:3:31:26 | res.coo ... 'bar') | src/express.js:22:30:32:1 | functio ... ar');\\n} | -| src/responseExprs.js:23:5:23:16 | res.cookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | diff --git a/javascript/ql/test/library-tests/frameworks/Express/SetCookie.ql b/javascript/ql/test/library-tests/frameworks/Express/SetCookie.ql deleted file mode 100644 index 647c36d7bce9..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/SetCookie.ql +++ /dev/null @@ -1,5 +0,0 @@ -import javascript - -from HTTP::CookieDefinition cookiedef, Express::RouteHandler rh -where rh = cookiedef.getRouteHandler() -select cookiedef, rh diff --git a/javascript/ql/test/library-tests/frameworks/Express/SetCookie.qll b/javascript/ql/test/library-tests/frameworks/Express/SetCookie.qll new file mode 100644 index 000000000000..adaa6cd39592 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/SetCookie.qll @@ -0,0 +1,5 @@ +import javascript + +query predicate test_SetCookie(HTTP::CookieDefinition cookiedef, Express::RouteHandler rh) { + rh = cookiedef.getRouteHandler() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.expected b/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.expected deleted file mode 100644 index dfd0a7058130..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.expected +++ /dev/null @@ -1,17 +0,0 @@ -| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:28:20:30 | req | src/csurf-example.js:20:33:20:35 | res | -| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:32:25:34 | req | src/csurf-example.js:25:37:25:39 | res | -| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:32:40:32:42 | req | src/csurf-example.js:32:45:32:47 | res | -| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:36:39:38 | req | src/csurf-example.js:39:41:39:43 | res | -| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:37:40:39 | req | src/csurf-example.js:40:42:40:44 | res | -| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:5:11:5:13 | e() | src/express2.js:3:34:3:36 | req | src/express2.js:3:39:3:41 | res | -| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:2:11:2:19 | express() | src/express3.js:4:32:4:34 | req | src/express3.js:4:37:4:39 | res | -| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:2:11:2:19 | express() | src/express4.js:4:32:4:34 | req | src/express4.js:4:37:4:39 | res | -| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:2:11:2:19 | express() | src/express.js:4:32:4:34 | req | src/express.js:4:37:4:39 | res | -| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:2:11:2:19 | express() | src/express.js:16:28:16:30 | req | src/express.js:16:33:16:35 | res | -| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:2:11:2:19 | express() | src/express.js:22:39:22:41 | req | src/express.js:22:44:22:46 | res | -| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:2:11:2:19 | express() | src/express.js:46:31:46:33 | req | src/express.js:46:36:46:38 | res | -| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:4:32:4:34 | req | src/responseExprs.js:4:37:4:40 | res1 | -| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:7:32:7:34 | req | src/responseExprs.js:7:37:7:40 | res2 | -| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:10:39:10:41 | req | src/responseExprs.js:10:44:10:47 | res3 | -| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:13:32:13:34 | req | src/responseExprs.js:13:37:13:40 | res4 | -| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:16:39:16:41 | req | src/responseExprs.js:16:44:16:46 | res | diff --git a/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.ql b/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.ql deleted file mode 100644 index 07939564d1e6..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.ql +++ /dev/null @@ -1,4 +0,0 @@ -import javascript - -from Express::StandardRouteHandler rh -select rh, rh.getServer(), rh.getRequestParameter(), rh.getResponseParameter() diff --git a/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.qll b/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.qll new file mode 100644 index 000000000000..7d5a60cfab29 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/StandardRouteHandler.qll @@ -0,0 +1,7 @@ +import javascript + +query predicate test_StandardRouteHandler( + Express::StandardRouteHandler rh, Expr res0, SimpleParameter res1, SimpleParameter res2 +) { + res0 = rh.getServer() and res1 = rh.getRequestParameter() and res2 = rh.getResponseParameter() +} diff --git a/javascript/ql/test/library-tests/frameworks/Express/appCreation.expected b/javascript/ql/test/library-tests/frameworks/Express/appCreation.expected deleted file mode 100644 index f70331407e05..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/appCreation.expected +++ /dev/null @@ -1,8 +0,0 @@ -| src/auth.js:1:13:1:32 | require('express')() | -| src/csurf-example.js:7:11:7:19 | express() | -| src/express2.js:5:11:5:13 | e() | -| src/express3.js:2:11:2:19 | express() | -| src/express4.js:2:11:2:19 | express() | -| src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:2:11:2:19 | express() | -| src/subrouter.js:2:11:2:19 | express() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/appCreation.ql b/javascript/ql/test/library-tests/frameworks/Express/appCreation.ql deleted file mode 100644 index 01e58eb595e2..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/appCreation.ql +++ /dev/null @@ -1,3 +0,0 @@ -import javascript - -select Express::appCreation() diff --git a/javascript/ql/test/library-tests/frameworks/Express/appCreation.qll b/javascript/ql/test/library-tests/frameworks/Express/appCreation.qll new file mode 100644 index 000000000000..1966542db011 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/appCreation.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_appCreation(DataFlow::SourceNode res) { res = Express::appCreation() } diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRequest.expected b/javascript/ql/test/library-tests/frameworks/Express/isRequest.expected deleted file mode 100644 index d36af77ff644..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isRequest.expected +++ /dev/null @@ -1,21 +0,0 @@ -| src/csurf-example.js:22:35:22:37 | req | -| src/express2.js:3:46:3:48 | req | -| src/express2.js:4:60:4:66 | request | -| src/express3.js:5:14:5:16 | req | -| src/express3.js:5:35:5:37 | req | -| src/express4.js:5:27:5:29 | req | -| src/express.js:5:16:5:18 | req | -| src/express.js:6:26:6:28 | req | -| src/express.js:23:3:23:5 | req | -| src/express.js:24:3:24:5 | req | -| src/express.js:25:3:25:5 | req | -| src/express.js:26:3:26:5 | req | -| src/express.js:27:3:27:5 | req | -| src/express.js:28:3:28:5 | req | -| src/express.js:29:3:29:5 | req | -| src/express.js:30:3:30:5 | req | -| src/express.js:47:3:47:5 | req | -| src/express.js:48:3:48:5 | req | -| src/express.js:49:3:49:5 | req | -| src/express.js:50:3:50:5 | req | -| src/responseExprs.js:17:5:17:7 | req | diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRequest.ql b/javascript/ql/test/library-tests/frameworks/Express/isRequest.ql deleted file mode 100644 index 3c754faba698..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isRequest.ql +++ /dev/null @@ -1,5 +0,0 @@ -import semmle.javascript.frameworks.Express - -from Expr nd -where Express::isRequest(nd) -select nd diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRequest.qll b/javascript/ql/test/library-tests/frameworks/Express/isRequest.qll new file mode 100644 index 000000000000..90c641e5be1f --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/isRequest.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_isRequest(Expr nd) { Express::isRequest(nd) } diff --git a/javascript/ql/test/library-tests/frameworks/Express/isResponse.expected b/javascript/ql/test/library-tests/frameworks/Express/isResponse.expected deleted file mode 100644 index a321ff3d2696..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isResponse.expected +++ /dev/null @@ -1,68 +0,0 @@ -| src/csurf-example.js:22:3:22:5 | res | -| src/csurf-example.js:26:3:26:5 | res | -| src/csurf-example.js:26:3:26:43 | res.sen ... here') | -| src/csurf-example.js:33:5:33:7 | res | -| src/csurf-example.js:33:5:33:35 | res.sen ... here') | -| src/express2.js:3:46:3:53 | req, res | -| src/express2.js:3:51:3:53 | res | -| src/express2.js:4:60:4:74 | request, result | -| src/express2.js:4:69:4:74 | result | -| src/express3.js:5:3:5:5 | res | -| src/express3.js:5:3:5:51 | res.hea ... "val")) | -| src/express3.js:6:3:6:5 | res | -| src/express3.js:6:3:6:17 | res.send("val") | -| src/express.js:5:3:5:5 | res | -| src/express.js:6:3:6:5 | res | -| src/express.js:6:3:6:45 | res.hea ... rget")) | -| src/express.js:7:3:7:5 | res | -| src/express.js:7:3:7:42 | res.hea ... plain") | -| src/express.js:8:7:8:9 | res | -| src/express.js:12:3:12:5 | arg | -| src/express.js:12:3:12:54 | arg.hea ... , true) | -| src/express.js:17:5:17:7 | res | -| src/express.js:17:5:17:24 | res.send("Go away.") | -| src/express.js:31:3:31:5 | res | -| src/express.js:31:3:31:26 | res.coo ... 'bar') | -| src/responseExprs.js:5:5:5:8 | res1 | -| src/responseExprs.js:8:5:8:8 | res2 | -| src/responseExprs.js:11:5:11:8 | res3 | -| src/responseExprs.js:14:5:14:8 | res4 | -| src/responseExprs.js:19:5:19:7 | res | -| src/responseExprs.js:19:5:19:16 | res.append() | -| src/responseExprs.js:20:5:20:7 | res | -| src/responseExprs.js:20:5:20:20 | res.attachment() | -| src/responseExprs.js:21:5:21:7 | res | -| src/responseExprs.js:21:5:21:21 | res.clearCookie() | -| src/responseExprs.js:22:5:22:7 | res | -| src/responseExprs.js:22:5:22:21 | res.contentType() | -| src/responseExprs.js:23:5:23:7 | res | -| src/responseExprs.js:23:5:23:16 | res.cookie() | -| src/responseExprs.js:24:5:24:7 | res | -| src/responseExprs.js:24:5:24:16 | res.format() | -| src/responseExprs.js:25:5:25:7 | res | -| src/responseExprs.js:25:5:25:16 | res.header() | -| src/responseExprs.js:26:5:26:7 | res | -| src/responseExprs.js:26:5:26:15 | res.links() | -| src/responseExprs.js:27:5:27:7 | res | -| src/responseExprs.js:27:5:27:18 | res.location() | -| src/responseExprs.js:28:5:28:7 | res | -| src/responseExprs.js:28:5:28:14 | res.send() | -| src/responseExprs.js:29:5:29:7 | res | -| src/responseExprs.js:29:5:29:20 | res.sendStatus() | -| src/responseExprs.js:30:5:30:7 | res | -| src/responseExprs.js:30:5:30:13 | res.set() | -| src/responseExprs.js:31:5:31:7 | res | -| src/responseExprs.js:31:5:31:16 | res.status() | -| src/responseExprs.js:32:5:32:7 | res | -| src/responseExprs.js:32:5:32:14 | res.type() | -| src/responseExprs.js:33:5:33:7 | res | -| src/responseExprs.js:33:5:33:14 | res.vary() | -| src/responseExprs.js:35:5:35:7 | res | -| src/responseExprs.js:35:5:35:16 | res.status() | -| src/responseExprs.js:35:5:35:23 | res.status().send() | -| src/responseExprs.js:37:5:37:19 | f(res.append()) | -| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | -| src/responseExprs.js:37:7:37:9 | res | -| src/responseExprs.js:37:7:37:18 | res.append() | -| src/responseExprs.js:40:16:40:21 | resArg | -| src/responseExprs.js:40:16:40:30 | resArg.append() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/isResponse.ql b/javascript/ql/test/library-tests/frameworks/Express/isResponse.ql deleted file mode 100644 index b4d9f8fcae39..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isResponse.ql +++ /dev/null @@ -1,5 +0,0 @@ -import semmle.javascript.frameworks.Express - -from Expr nd -where Express::isResponse(nd) -select nd diff --git a/javascript/ql/test/library-tests/frameworks/Express/isResponse.qll b/javascript/ql/test/library-tests/frameworks/Express/isResponse.qll new file mode 100644 index 000000000000..edc219adb67b --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/isResponse.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_isResponse(Expr nd) { Express::isResponse(nd) } diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.expected b/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.expected deleted file mode 100644 index 7404946c819d..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.expected +++ /dev/null @@ -1,13 +0,0 @@ -| es6-imported-router.js:3:1:3:12 | new Router() | -| src/auth.js:1:13:1:32 | require('express')() | -| src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/express2.js:2:14:2:23 | e.Router() | -| src/express2.js:5:11:5:13 | e() | -| src/express3.js:2:11:2:19 | express() | -| src/express4.js:2:11:2:19 | express() | -| src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:2:11:2:19 | express() | -| src/route.js:2:14:2:29 | express.Router() | -| src/subrouter.js:2:11:2:19 | express() | -| src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.ql b/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.ql deleted file mode 100644 index acf74a84a272..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.ql +++ /dev/null @@ -1,3 +0,0 @@ -import javascript - -select Express::routerCreation() diff --git a/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.qll b/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.qll new file mode 100644 index 000000000000..585212e148b7 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/isRouterCreation.qll @@ -0,0 +1,3 @@ +import javascript + +query predicate test_isRouterCreation(DataFlow::SourceNode res) { res = Express::routerCreation() } diff --git a/javascript/ql/test/library-tests/frameworks/Express/routerCreation.expected b/javascript/ql/test/library-tests/frameworks/Express/routerCreation.expected deleted file mode 100644 index 524332ec46e9..000000000000 --- a/javascript/ql/test/library-tests/frameworks/Express/routerCreation.expected +++ /dev/null @@ -1,10 +0,0 @@ -| src/auth.js:1:13:1:32 | require('express')() | -| src/csurf-example.js:7:11:7:19 | express() | -| src/csurf-example.js:30:16:30:35 | new express.Router() | -| src/express2.js:2:14:2:23 | e.Router() | -| src/express2.js:5:11:5:13 | e() | -| src/express.js:2:11:2:19 | express() | -| src/responseExprs.js:2:11:2:19 | express() | -| src/route.js:2:14:2:29 | express.Router() | -| src/subrouter.js:2:11:2:19 | express() | -| src/subrouter.js:8:16:8:31 | express.Router() | diff --git a/javascript/ql/test/library-tests/frameworks/Express/tests.expected b/javascript/ql/test/library-tests/frameworks/Express/tests.expected new file mode 100644 index 000000000000..fcdc3bce7868 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/tests.expected @@ -0,0 +1,947 @@ +test_RouteHandlerExpr_getBody +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:5:12:5:38 | functio ... ext) {} | +test_RouteSetup +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | false | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | false | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:7:11:7:19 | express() | false | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | false | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | false | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:5:11:5:13 | e() | false | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | false | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | false | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | false | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | false | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | false | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | false | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | false | +test_RouteSetup_getLastRouteHandlerExpr +| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | +| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | +test_RouterDefinition_getMiddlewareStackAt +| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:5:1:5:0 | exit node of | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:3 | app | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:7 | app.use | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:5:16:7 | use | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:18 | bodyParser | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:29 | bodyPar ... encoded | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:20:16:29 | urlencoded | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:31:16:49 | { extended: false } | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:33:16:40 | extended | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:33:16:47 | extended: false | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:16:43:16:47 | false | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:3 | app | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:7 | app.use | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:5:17:7 | use | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:9:17:20 | cookieParser | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:3 | app | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:7 | app.use | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:5:18:7 | use | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:12 | csrf | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:14:18:29 | { cookie: true } | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:16:18:21 | cookie | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:16:18:27 | cookie: true | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:24:18:27 | true | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:20:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:20:7 | app.get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:5:20:7 | get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:9:20:15 | '/form' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:25:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:25:8 | app.post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:5:25:8 | post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:10:25:19 | '/process' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:29:1:37:1 | functio ... outer\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:7 | app.get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:1:39:49 | app.get ... s) {}); | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:5:39:7 | get | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:9:39:23 | '/form/subform' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:3 | app | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:8 | app.post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:1:40:50 | app.pos ... s) {}); | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:5:40:8 | post | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:10:40:24 | '/form/subform' | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:41:1:41:0 | exit node of | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/express2.js:5:11:5:13 | e() | src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | +| src/express2.js:5:11:5:13 | e() | src/express2.js:7:1:7:0 | exit node of | src/express2.js:6:9:6:14 | router | +| src/express3.js:2:11:2:19 | express() | src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | +| src/express3.js:2:11:2:19 | express() | src/express3.js:13:1:13:0 | exit node of | src/express3.js:12:9:12:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:41:1:43:1 | functio ... f();\\n} | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:3 | app | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:7 | app.use | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:1:44:27 | app.use ... ler()); | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:5:44:7 | use | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:23 | getArrowHandler | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:1:46:3 | app | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:1:46:8 | app.post | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:1:51:3 | app.pos ... e];\\n}); | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:5:46:8 | post | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:10:46:19 | '/headers' | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:52:1:52:0 | exit node of | src/express.js:44:9:44:25 | getArrowHandler() | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:3 | app | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:7 | app.use | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:5:5:7 | use | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:9:5:11 | "/" | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:26 | makeSubRouter | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:7:1:12:1 | functio ... uter;\\n} | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:13:1:13:0 | exit node of | src/subrouter.js:5:14:5:28 | makeSubRouter() | +test_isRequest +| src/csurf-example.js:22:35:22:37 | req | +| src/express2.js:3:46:3:48 | req | +| src/express2.js:4:60:4:66 | request | +| src/express3.js:5:14:5:16 | req | +| src/express3.js:5:35:5:37 | req | +| src/express4.js:5:27:5:29 | req | +| src/express.js:5:16:5:18 | req | +| src/express.js:6:26:6:28 | req | +| src/express.js:23:3:23:5 | req | +| src/express.js:24:3:24:5 | req | +| src/express.js:25:3:25:5 | req | +| src/express.js:26:3:26:5 | req | +| src/express.js:27:3:27:5 | req | +| src/express.js:28:3:28:5 | req | +| src/express.js:29:3:29:5 | req | +| src/express.js:30:3:30:5 | req | +| src/express.js:47:3:47:5 | req | +| src/express.js:48:3:48:5 | req | +| src/express.js:49:3:49:5 | req | +| src/express.js:50:3:50:5 | req | +| src/responseExprs.js:17:5:17:7 | req | +test_RouteSetup_getRouter +| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:1:13:1:32 | require('express')() | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:2:14:2:23 | e.Router() | +| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:2:14:2:23 | e.Router() | +| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:5:11:5:13 | e() | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | +| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:2:11:2:19 | express() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | +| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:2:11:2:19 | express() | +| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:2:11:2:19 | express() | +| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:2:11:2:19 | express() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:2:14:2:29 | express.Router() | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:2:11:2:19 | express() | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:2:11:2:19 | express() | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:8:16:8:31 | express.Router() | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:8:16:8:31 | express.Router() | +test_RedirectInvocation +| src/express.js:5:3:5:35 | res.red ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | +test_StandardRouteHandler +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:28:20:30 | req | src/csurf-example.js:20:33:20:35 | res | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:32:25:34 | req | src/csurf-example.js:25:37:25:39 | res | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:32:40:32:42 | req | src/csurf-example.js:32:45:32:47 | res | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:36:39:38 | req | src/csurf-example.js:39:41:39:43 | res | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:37:40:39 | req | src/csurf-example.js:40:42:40:44 | res | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:5:11:5:13 | e() | src/express2.js:3:34:3:36 | req | src/express2.js:3:39:3:41 | res | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:2:11:2:19 | express() | src/express3.js:4:32:4:34 | req | src/express3.js:4:37:4:39 | res | +| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:2:11:2:19 | express() | src/express4.js:4:32:4:34 | req | src/express4.js:4:37:4:39 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:2:11:2:19 | express() | src/express.js:4:32:4:34 | req | src/express.js:4:37:4:39 | res | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:2:11:2:19 | express() | src/express.js:16:28:16:30 | req | src/express.js:16:33:16:35 | res | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:2:11:2:19 | express() | src/express.js:22:39:22:41 | req | src/express.js:22:44:22:46 | res | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:2:11:2:19 | express() | src/express.js:46:31:46:33 | req | src/express.js:46:36:46:38 | res | +| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:4:32:4:34 | req | src/responseExprs.js:4:37:4:40 | res1 | +| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:7:32:7:34 | req | src/responseExprs.js:7:37:7:40 | res2 | +| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:10:39:10:41 | req | src/responseExprs.js:10:44:10:47 | res3 | +| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:13:32:13:34 | req | src/responseExprs.js:13:37:13:40 | res4 | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:16:39:16:41 | req | src/responseExprs.js:16:44:16:46 | res | +test_RequestInputAccess +| src/express3.js:5:14:5:32 | req.param("header") | parameter | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:5:35:5:50 | req.param("val") | parameter | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express4.js:5:9:5:11 | foo | parameter | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express4.js:5:14:5:21 | bar: baz | parameter | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:5:16:5:34 | req.param("target") | parameter | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:6:26:6:44 | req.param("target") | parameter | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:23:3:23:10 | req.body | body | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:24:3:24:16 | req.params.foo | parameter | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:25:3:25:15 | req.query.bar | parameter | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:26:3:26:9 | req.url | url | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:27:3:27:17 | req.originalUrl | url | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:28:3:28:16 | req.get("foo") | header | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:29:3:29:19 | req.header("bar") | header | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:30:3:30:13 | req.cookies | cookie | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:47:3:47:17 | req.headers.baz | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:48:3:48:10 | req.host | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:49:3:49:14 | req.hostname | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:50:3:50:32 | req.hea ... erName] | header | src/express.js:46:22:51:1 | functio ... ame];\\n} | +test_SetCookie +| src/express.js:31:3:31:26 | res.coo ... 'bar') | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/responseExprs.js:23:5:23:16 | res.cookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +test_RouteHandler_getAResponseHeader +| src/express.js:4:23:9:1 | functio ... res);\\n} | access-control-allow-credentials | src/express.js:12:3:12:54 | arg.hea ... , true) | +| src/express.js:4:23:9:1 | functio ... res);\\n} | content-type | src/express.js:7:3:7:42 | res.hea ... plain") | +| src/express.js:4:23:9:1 | functio ... res);\\n} | location | src/express.js:6:3:6:45 | res.hea ... rget")) | +test_RouteSetup_handlesSameRequestMethodAs +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | +test_HeaderDefinition_defines +| src/express.js:7:3:7:42 | res.hea ... plain") | content-type | text/plain | +test_ResponseExpr +| src/csurf-example.js:22:3:22:5 | res | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:26:3:26:5 | res | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:26:3:26:43 | res.sen ... here') | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:33:5:33:7 | res | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:33:5:33:35 | res.sen ... here') | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/express2.js:3:46:3:53 | req, res | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:3:51:3:53 | res | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:4:60:4:74 | request, result | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express2.js:4:69:4:74 | result | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express3.js:5:3:5:5 | res | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:6:3:6:5 | res | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:6:3:6:17 | res.send("val") | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express.js:5:3:5:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:6:3:6:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:7:3:7:5 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:8:7:8:9 | res | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:12:3:12:5 | arg | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:17:5:17:7 | res | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:17:5:17:24 | res.send("Go away.") | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:31:3:31:5 | res | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:31:3:31:26 | res.coo ... 'bar') | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/responseExprs.js:5:5:5:8 | res1 | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:8:5:8:8 | res2 | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:11:5:11:8 | res3 | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:14:5:14:8 | res4 | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:19:5:19:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:19:5:19:16 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:20:5:20:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:20:5:20:20 | res.attachment() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:21:5:21:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:21:5:21:21 | res.clearCookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:22:5:22:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:22:5:22:21 | res.contentType() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:23:5:23:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:23:5:23:16 | res.cookie() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:24:5:24:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:24:5:24:16 | res.format() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:25:5:25:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:25:5:25:16 | res.header() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:26:5:26:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:26:5:26:15 | res.links() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:27:5:27:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:27:5:27:18 | res.location() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:28:5:28:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:28:5:28:14 | res.send() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:29:5:29:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:29:5:29:20 | res.sendStatus() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:30:5:30:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:30:5:30:13 | res.set() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:31:5:31:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:31:5:31:16 | res.status() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:32:5:32:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:32:5:32:14 | res.type() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:33:5:33:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:33:5:33:14 | res.vary() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:35:5:35:7 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:35:5:35:16 | res.status() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:35:5:35:23 | res.status().send() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:5:37:19 | f(res.append()) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:7:37:9 | res | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:7:37:18 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:40:16:40:21 | resArg | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:40:16:40:30 | resArg.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +test_RouterDefinition_getARouteHandler +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/csurf-example.js:30:16:30:35 | new express.Router() | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/express2.js:2:14:2:23 | e.Router() | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express3.js:2:11:2:19 | express() | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express4.js:2:11:2:19 | express() | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:2:11:2:19 | express() | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:2:11:2:19 | express() | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:2:11:2:19 | express() | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:2:11:2:19 | express() | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:2:11:2:19 | express() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +test_CookieMiddlewareInstance +| src/cookie-parser.js:3:1:3:23 | session ... key-1") | src/cookie-parser.js:3:9:3:22 | "secret-key-1" | +| src/cookie-parser.js:5:1:5:41 | session ... ey-3"]) | src/cookie-parser.js:5:10:5:23 | "secret-key-2" | +| src/cookie-parser.js:5:1:5:41 | session ... ey-3"]) | src/cookie-parser.js:5:26:5:39 | "secret-key-3" | +| src/cookie-session.js:3:1:5:2 | session ... y-1"\\n}) | src/cookie-session.js:4:13:4:26 | "secret-key-1" | +| src/cookie-session.js:7:1:9:2 | session ... -3"]\\n}) | src/cookie-session.js:8:12:8:25 | "secret-key-2" | +| src/cookie-session.js:7:1:9:2 | session ... -3"]\\n}) | src/cookie-session.js:8:28:8:41 | "secret-key-3" | +| src/express-session.js:3:1:5:2 | session ... y-1"\\n}) | src/express-session.js:4:13:4:26 | "secret-key-1" | +| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | src/express-session.js:8:14:8:27 | "secret-key-2" | +| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | src/express-session.js:8:30:8:43 | "secret-key-3" | +test_RouteHandlerExpr_getNextMiddleware +| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express.js:39:9:39:20 | getHandler() | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/subrouter.js:4:19:4:25 | protect | src/subrouter.js:5:14:5:28 | makeSubRouter() | +test_HeaderDefinition +| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/responseExprs.js:19:5:19:16 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:37:7:37:18 | res.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/responseExprs.js:40:16:40:30 | resArg.append() | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +test_ExpressSession +| src/express-session.js:3:1:5:2 | session ... y-1"\\n}) | secret | src/express-session.js:4:13:4:26 | "secret-key-1" | +| src/express-session.js:7:1:9:2 | session ... -3"]\\n}) | secret | src/express-session.js:8:13:8:44 | ["secre ... key-3"] | +test_RequestBodyAccess +| src/express.js:23:3:23:10 | req.body | +test_RouteSetup_getServer +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:7:11:7:19 | express() | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:5:11:5:13 | e() | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:2:11:2:19 | express() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:2:11:2:19 | express() | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:2:11:2:19 | express() | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:2:11:2:19 | express() | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:2:11:2:19 | express() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:2:11:2:19 | express() | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:2:11:2:19 | express() | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:2:11:2:19 | express() | +test_HeaderDefinition_getAHeaderName +| src/express.js:6:3:6:45 | res.hea ... rget")) | location | +| src/express.js:7:3:7:42 | res.hea ... plain") | content-type | +| src/express.js:12:3:12:54 | arg.hea ... , true) | access-control-allow-credentials | +test_HeaderAccess +| src/express.js:28:3:28:16 | req.get("foo") | foo | +| src/express.js:29:3:29:19 | req.header("bar") | bar | +| src/express.js:47:3:47:17 | req.headers.baz | baz | +| src/express.js:48:3:48:10 | req.host | host | +| src/express.js:49:3:49:14 | req.hostname | host | +test_RouteHandlerExpr +| src/auth.js:4:9:4:52 | basicAu ... rd' }}) | src/auth.js:4:1:4:53 | app.use ... d' }})) | false | +| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:13:1:13:20 | app.use('/api', api) | false | +| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:16:1:16:51 | app.use ... lse })) | false | +| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:17:1:17:23 | app.use ... rser()) | false | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:18:1:18:31 | app.use ... rue })) | false | +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | true | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | true | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | true | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | true | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | true | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:1:3:56 | router. ... res }) | true | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:3:1:4:77 | router. ... sult }) | true | +| src/express2.js:6:9:6:14 | router | src/express2.js:6:1:6:15 | app.use(router) | false | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:1:7:2 | app.get ... l");\\n}) | true | +| src/express3.js:12:9:12:20 | getHandler() | src/express3.js:12:1:12:21 | app.use ... dler()) | false | +| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | true | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:1:9:2 | app.get ... es);\\n}) | true | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:3:18:4 | router. ... );\\n }) | true | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:1:32:2 | app.pos ... r');\\n}) | true | +| src/express.js:34:14:34:52 | require ... handler | src/express.js:34:1:34:53 | app.get ... andler) | true | +| src/express.js:39:9:39:20 | getHandler() | src/express.js:39:1:39:21 | app.use ... dler()) | false | +| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:44:1:44:26 | app.use ... dler()) | false | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:1:51:2 | app.pos ... me];\\n}) | true | +| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | true | +| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | true | +| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | true | +| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | true | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | true | +| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:4:1:5:39 | router. ... xt) {}) | true | +| src/subrouter.js:4:19:4:25 | protect | src/subrouter.js:4:1:4:26 | app.use ... rotect) | false | +| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:5:1:5:29 | app.use ... uter()) | false | +| src/subrouter.js:9:27:9:34 | handler1 | src/subrouter.js:9:3:9:35 | router. ... ndler1) | true | +| src/subrouter.js:10:33:10:40 | handler2 | src/subrouter.js:10:3:10:41 | router. ... ndler2) | true | +test_RouteSetup_handlesAllRequestMethods +| src/auth.js:4:1:4:53 | app.use ... d' }})) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | +| src/express2.js:6:1:6:15 | app.use(router) | +| src/express3.js:12:1:12:21 | app.use ... dler()) | +| src/express.js:39:1:39:21 | app.use ... dler()) | +| src/express.js:44:1:44:26 | app.use ... dler()) | +| src/route.js:4:1:5:39 | router. ... xt) {}) | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | +test_RouterDefinition_getASubRouter +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/express2.js:5:11:5:13 | e() | src/express2.js:2:14:2:23 | e.Router() | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:8:16:8:31 | express.Router() | +test_HeaderDefinition_getNameExpr +| src/express3.js:5:3:5:51 | res.hea ... "val")) | src/express3.js:5:14:5:32 | req.param("header") | +| src/express.js:6:3:6:45 | res.hea ... rget")) | src/express.js:6:14:6:23 | "Location" | +| src/express.js:7:3:7:42 | res.hea ... plain") | src/express.js:7:14:7:27 | "Content-Type" | +| src/express.js:12:3:12:54 | arg.hea ... , true) | src/express.js:12:14:12:47 | "Access ... ntials" | +test_appCreation +| src/auth.js:1:13:1:32 | require('express')() | +| src/csurf-example.js:7:11:7:19 | express() | +| src/express2.js:5:11:5:13 | e() | +| src/express3.js:2:11:2:19 | express() | +| src/express4.js:2:11:2:19 | express() | +| src/express.js:2:11:2:19 | express() | +| src/responseExprs.js:2:11:2:19 | express() | +| src/subrouter.js:2:11:2:19 | express() | +test_RouteSetup_getRequestMethod +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | GET | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | POST | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | POST | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | GET | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | POST | +| src/express2.js:3:1:3:56 | router. ... res }) | GET | +| src/express2.js:3:1:4:77 | router. ... sult }) | POST | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | GET | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | GET | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | GET | +| src/express.js:16:3:18:4 | router. ... );\\n }) | GET | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | POST | +| src/express.js:34:1:34:53 | app.get ... andler) | GET | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | POST | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | GET | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | GET | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | GET | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | GET | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | POST | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | POST | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | POST | +test_RouteExpr +| src/route.js:4:1:4:31 | router. ... er_id') | src/route.js:2:14:2:29 | express.Router() | +| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:2:14:2:29 | express.Router() | +test_RouteHandler_getAResponseExpr +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:22:3:22:5 | res | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:26:3:26:5 | res | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:26:3:26:43 | res.sen ... here') | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:33:5:33:7 | res | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:33:5:33:35 | res.sen ... here') | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:46:3:53 | req, res | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:51:3:53 | res | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:60:4:74 | request, result | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:69:4:74 | result | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:3:5:5 | res | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:3:5:51 | res.hea ... "val")) | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:6:3:6:5 | res | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:6:3:6:17 | res.send("val") | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:5:3:5:5 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:3:6:5 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:3:6:45 | res.hea ... rget")) | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:7:3:7:5 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:7:3:7:42 | res.hea ... plain") | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:8:7:8:9 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:12:3:12:5 | arg | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:12:3:12:54 | arg.hea ... , true) | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:17:5:17:7 | res | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:17:5:17:24 | res.send("Go away.") | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:31:3:31:5 | res | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:31:3:31:26 | res.coo ... 'bar') | +| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:5:5:5:8 | res1 | +| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:8:5:8:8 | res2 | +| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:11:5:11:8 | res3 | +| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:14:5:14:8 | res4 | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:19:5:19:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:19:5:19:16 | res.append() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:20:5:20:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:20:5:20:20 | res.attachment() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:21:5:21:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:21:5:21:21 | res.clearCookie() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:22:5:22:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:22:5:22:21 | res.contentType() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:23:5:23:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:23:5:23:16 | res.cookie() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:24:5:24:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:24:5:24:16 | res.format() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:25:5:25:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:25:5:25:16 | res.header() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:26:5:26:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:26:5:26:15 | res.links() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:27:5:27:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:27:5:27:18 | res.location() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:28:5:28:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:28:5:28:14 | res.send() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:29:5:29:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:29:5:29:20 | res.sendStatus() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:30:5:30:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:30:5:30:13 | res.set() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:31:5:31:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:31:5:31:16 | res.status() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:32:5:32:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:32:5:32:14 | res.type() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:33:5:33:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:33:5:33:14 | res.vary() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:7 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:16 | res.status() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:35:5:35:23 | res.status().send() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:5:37:19 | f(res.append()) | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:7:37:9 | res | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:37:7:37:18 | res.append() | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:40:16:40:21 | resArg | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:40:16:40:30 | resArg.append() | +test_isResponse +| src/csurf-example.js:22:3:22:5 | res | +| src/csurf-example.js:26:3:26:5 | res | +| src/csurf-example.js:26:3:26:43 | res.sen ... here') | +| src/csurf-example.js:33:5:33:7 | res | +| src/csurf-example.js:33:5:33:35 | res.sen ... here') | +| src/express2.js:3:46:3:53 | req, res | +| src/express2.js:3:51:3:53 | res | +| src/express2.js:4:60:4:74 | request, result | +| src/express2.js:4:69:4:74 | result | +| src/express3.js:5:3:5:5 | res | +| src/express3.js:5:3:5:51 | res.hea ... "val")) | +| src/express3.js:6:3:6:5 | res | +| src/express3.js:6:3:6:17 | res.send("val") | +| src/express.js:5:3:5:5 | res | +| src/express.js:6:3:6:5 | res | +| src/express.js:6:3:6:45 | res.hea ... rget")) | +| src/express.js:7:3:7:5 | res | +| src/express.js:7:3:7:42 | res.hea ... plain") | +| src/express.js:8:7:8:9 | res | +| src/express.js:12:3:12:5 | arg | +| src/express.js:12:3:12:54 | arg.hea ... , true) | +| src/express.js:17:5:17:7 | res | +| src/express.js:17:5:17:24 | res.send("Go away.") | +| src/express.js:31:3:31:5 | res | +| src/express.js:31:3:31:26 | res.coo ... 'bar') | +| src/responseExprs.js:5:5:5:8 | res1 | +| src/responseExprs.js:8:5:8:8 | res2 | +| src/responseExprs.js:11:5:11:8 | res3 | +| src/responseExprs.js:14:5:14:8 | res4 | +| src/responseExprs.js:19:5:19:7 | res | +| src/responseExprs.js:19:5:19:16 | res.append() | +| src/responseExprs.js:20:5:20:7 | res | +| src/responseExprs.js:20:5:20:20 | res.attachment() | +| src/responseExprs.js:21:5:21:7 | res | +| src/responseExprs.js:21:5:21:21 | res.clearCookie() | +| src/responseExprs.js:22:5:22:7 | res | +| src/responseExprs.js:22:5:22:21 | res.contentType() | +| src/responseExprs.js:23:5:23:7 | res | +| src/responseExprs.js:23:5:23:16 | res.cookie() | +| src/responseExprs.js:24:5:24:7 | res | +| src/responseExprs.js:24:5:24:16 | res.format() | +| src/responseExprs.js:25:5:25:7 | res | +| src/responseExprs.js:25:5:25:16 | res.header() | +| src/responseExprs.js:26:5:26:7 | res | +| src/responseExprs.js:26:5:26:15 | res.links() | +| src/responseExprs.js:27:5:27:7 | res | +| src/responseExprs.js:27:5:27:18 | res.location() | +| src/responseExprs.js:28:5:28:7 | res | +| src/responseExprs.js:28:5:28:14 | res.send() | +| src/responseExprs.js:29:5:29:7 | res | +| src/responseExprs.js:29:5:29:20 | res.sendStatus() | +| src/responseExprs.js:30:5:30:7 | res | +| src/responseExprs.js:30:5:30:13 | res.set() | +| src/responseExprs.js:31:5:31:7 | res | +| src/responseExprs.js:31:5:31:16 | res.status() | +| src/responseExprs.js:32:5:32:7 | res | +| src/responseExprs.js:32:5:32:14 | res.type() | +| src/responseExprs.js:33:5:33:7 | res | +| src/responseExprs.js:33:5:33:14 | res.vary() | +| src/responseExprs.js:35:5:35:7 | res | +| src/responseExprs.js:35:5:35:16 | res.status() | +| src/responseExprs.js:35:5:35:23 | res.status().send() | +| src/responseExprs.js:37:5:37:19 | f(res.append()) | +| src/responseExprs.js:37:5:37:28 | f(res.a ... ppend() | +| src/responseExprs.js:37:7:37:9 | res | +| src/responseExprs.js:37:7:37:18 | res.append() | +| src/responseExprs.js:40:16:40:21 | resArg | +| src/responseExprs.js:40:16:40:30 | resArg.append() | +test_ResponseBody +| src/csurf-example.js:22:35:22:49 | req.csrfToken() | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:26:12:26:42 | 'csrf w ... t here' | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:33:14:33:34 | 'no csr ... t here' | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/express3.js:6:12:6:16 | "val" | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express.js:17:14:17:23 | "Go away." | src/express.js:16:19:18:3 | functio ... ");\\n } | +test_ResponseSendArgument +| src/csurf-example.js:26:12:26:42 | 'csrf w ... t here' | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:33:14:33:34 | 'no csr ... t here' | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/express3.js:6:12:6:16 | "val" | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express.js:17:14:17:23 | "Go away." | src/express.js:16:19:18:3 | functio ... ");\\n } | +test_RouteSetup_getARouteHandler +| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:10:11:10:27 | createApiRouter() | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:2:14:2:23 | e.Router() | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:10:12:10:32 | functio ... res){} | +| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:34:1:34:53 | app.get ... andler) | src/exportedHandler.js:1:19:1:55 | functio ... res) {} | +| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | +| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:37:12:37:32 | functio ... res){} | +| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:42:12:42:28 | (req, res) => f() | +| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:8:16:8:31 | express.Router() | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | +test_RouteHandlerExpr_getAMatchingAncestor +| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | +test_isRouterCreation +| es6-imported-router.js:3:1:3:12 | new Router() | +| src/auth.js:1:13:1:32 | require('express')() | +| src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/express2.js:2:14:2:23 | e.Router() | +| src/express2.js:5:11:5:13 | e() | +| src/express3.js:2:11:2:19 | express() | +| src/express4.js:2:11:2:19 | express() | +| src/express.js:2:11:2:19 | express() | +| src/responseExprs.js:2:11:2:19 | express() | +| src/route.js:2:14:2:29 | express.Router() | +| src/subrouter.js:2:11:2:19 | express() | +| src/subrouter.js:8:16:8:31 | express.Router() | +test_RouteSetup_getRouteHandlerExpr +| src/auth.js:4:1:4:53 | app.use ... d' }})) | 0 | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | 0 | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | 0 | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | 0 | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | 0 | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | 0 | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | 0 | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | 0 | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | 0 | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | 0 | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express2.js:3:1:3:56 | router. ... res }) | 0 | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:3:1:4:77 | router. ... sult }) | 0 | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express2.js:6:1:6:15 | app.use(router) | 0 | src/express2.js:6:9:6:14 | router | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | 0 | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:12:1:12:21 | app.use ... dler()) | 0 | src/express3.js:12:9:12:20 | getHandler() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | 0 | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | 0 | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:16:3:18:4 | router. ... );\\n }) | 0 | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | 0 | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:34:1:34:53 | app.get ... andler) | 0 | src/express.js:34:14:34:52 | require ... handler | +| src/express.js:39:1:39:21 | app.use ... dler()) | 0 | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:44:1:44:26 | app.use ... dler()) | 0 | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | 0 | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | 0 | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | 0 | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | 0 | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | 0 | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | 0 | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/route.js:4:1:5:39 | router. ... xt) {}) | 0 | src/route.js:5:12:5:38 | functio ... ext) {} | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | 0 | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | 0 | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | 0 | src/subrouter.js:9:27:9:34 | handler1 | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | 0 | src/subrouter.js:10:33:10:40 | handler2 | +test_RouterDefinition_RouterDefinition +| es6-imported-router.js:3:1:3:12 | new Router() | +| src/auth.js:1:13:1:32 | require('express')() | +| src/csurf-example.js:7:11:7:19 | express() | +| src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/express2.js:2:14:2:23 | e.Router() | +| src/express2.js:5:11:5:13 | e() | +| src/express3.js:2:11:2:19 | express() | +| src/express4.js:2:11:2:19 | express() | +| src/express.js:2:11:2:19 | express() | +| src/responseExprs.js:2:11:2:19 | express() | +| src/route.js:2:14:2:29 | express.Router() | +| src/subrouter.js:2:11:2:19 | express() | +| src/subrouter.js:8:16:8:31 | express.Router() | +test_RouteHandler_getARequestBodyAccess +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:23:3:23:10 | req.body | +test_RouterDefinition_getMiddlewareStack +| src/auth.js:1:13:1:32 | require('express')() | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:7:11:7:19 | express() | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/express2.js:5:11:5:13 | e() | src/express2.js:6:9:6:14 | router | +| src/express3.js:2:11:2:19 | express() | src/express3.js:12:9:12:20 | getHandler() | +| src/express.js:2:11:2:19 | express() | src/express.js:44:9:44:25 | getArrowHandler() | +| src/subrouter.js:2:11:2:19 | express() | src/subrouter.js:5:14:5:28 | makeSubRouter() | +test_RouteHandler +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:20:28:20:30 | req | src/csurf-example.js:20:33:20:35 | res | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:25:32:25:34 | req | src/csurf-example.js:25:37:25:39 | res | +| src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | src/csurf-example.js:32:40:32:42 | req | src/csurf-example.js:32:45:32:47 | res | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:39:36:39:38 | req | src/csurf-example.js:39:41:39:43 | res | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:40:37:40:39 | req | src/csurf-example.js:40:42:40:44 | res | +| src/exportedHandler.js:1:19:1:55 | functio ... res) {} | src/exportedHandler.js:1:44:1:46 | req | src/exportedHandler.js:1:49:1:51 | res | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:34:3:36 | req | src/express2.js:3:39:3:41 | res | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:41:4:47 | request | src/express2.js:4:50:4:55 | result | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:4:32:4:34 | req | src/express3.js:4:37:4:39 | res | +| src/express3.js:10:12:10:32 | functio ... res){} | src/express3.js:10:22:10:24 | req | src/express3.js:10:27:10:29 | res | +| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:4:32:4:34 | req | src/express4.js:4:37:4:39 | res | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:4:32:4:34 | req | src/express.js:4:37:4:39 | res | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:16:28:16:30 | req | src/express.js:16:33:16:35 | res | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:22:39:22:41 | req | src/express.js:22:44:22:46 | res | +| src/express.js:37:12:37:32 | functio ... res){} | src/express.js:37:22:37:24 | req | src/express.js:37:27:37:29 | res | +| src/express.js:42:12:42:28 | (req, res) => f() | src/express.js:42:13:42:15 | req | src/express.js:42:18:42:20 | res | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:46:31:46:33 | req | src/express.js:46:36:46:38 | res | +| src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | src/responseExprs.js:4:32:4:34 | req | src/responseExprs.js:4:37:4:40 | res1 | +| src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | src/responseExprs.js:7:32:7:34 | req | src/responseExprs.js:7:37:7:40 | res2 | +| src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | src/responseExprs.js:10:39:10:41 | req | src/responseExprs.js:10:44:10:47 | res3 | +| src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | src/responseExprs.js:13:32:13:34 | req | src/responseExprs.js:13:37:13:40 | res4 | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:16:39:16:41 | req | src/responseExprs.js:16:44:16:46 | res | +| src/route.js:5:12:5:38 | functio ... ext) {} | src/route.js:5:21:5:23 | req | src/route.js:5:26:5:28 | res | +test_RouteSetup_getARouteHandlerExpr +| src/auth.js:4:1:4:53 | app.use ... d' }})) | src/auth.js:4:9:4:52 | basicAu ... rd' }}) | +| src/csurf-example.js:13:1:13:20 | app.use('/api', api) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:16:1:16:51 | app.use ... lse })) | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:17:1:17:23 | app.use ... rser()) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:18:1:18:31 | app.use ... rue })) | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:20:1:23:2 | app.get ... ) })\\n}) | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/csurf-example.js:25:1:27:2 | app.pos ... re')\\n}) | src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | +| src/csurf-example.js:32:3:34:4 | router. ... ')\\n }) | src/csurf-example.js:32:30:34:3 | functio ... e')\\n } | +| src/csurf-example.js:39:1:39:48 | app.get ... es) {}) | src/csurf-example.js:39:26:39:47 | functio ... res) {} | +| src/csurf-example.js:40:1:40:49 | app.pos ... es) {}) | src/csurf-example.js:40:27:40:48 | functio ... res) {} | +| src/express2.js:3:1:3:56 | router. ... res }) | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:3:1:4:77 | router. ... sult }) | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express2.js:6:1:6:15 | app.use(router) | src/express2.js:6:9:6:14 | router | +| src/express3.js:4:1:7:2 | app.get ... l");\\n}) | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:12:1:12:21 | app.use ... dler()) | src/express3.js:12:9:12:20 | getHandler() | +| src/express4.js:4:1:6:2 | app.get ... ery;\\n}) | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:4:1:9:2 | app.get ... es);\\n}) | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:16:3:18:4 | router. ... );\\n }) | src/express.js:16:19:18:3 | functio ... ");\\n } | +| src/express.js:22:1:32:2 | app.pos ... r');\\n}) | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:34:1:34:53 | app.get ... andler) | src/express.js:34:14:34:52 | require ... handler | +| src/express.js:39:1:39:21 | app.use ... dler()) | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:44:1:44:26 | app.use ... dler()) | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:46:1:51:2 | app.pos ... me];\\n}) | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:4:1:6:2 | app.get ... res1\\n}) | src/responseExprs.js:4:23:6:1 | functio ... res1\\n} | +| src/responseExprs.js:7:1:9:2 | app.get ... es2;\\n}) | src/responseExprs.js:7:23:9:1 | functio ... res2;\\n} | +| src/responseExprs.js:10:1:12:2 | app.get ... es3;\\n}) | src/responseExprs.js:10:23:12:1 | functio ... res3;\\n} | +| src/responseExprs.js:13:1:15:2 | app.get ... es4;\\n}) | src/responseExprs.js:13:23:15:1 | functio ... res4;\\n} | +| src/responseExprs.js:16:1:42:2 | app.pos ... }\\n}) | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +| src/route.js:4:1:5:39 | router. ... xt) {}) | src/route.js:5:12:5:38 | functio ... ext) {} | +| src/subrouter.js:4:1:4:26 | app.use ... rotect) | src/subrouter.js:4:19:4:25 | protect | +| src/subrouter.js:5:1:5:29 | app.use ... uter()) | src/subrouter.js:5:14:5:28 | makeSubRouter() | +| src/subrouter.js:9:3:9:35 | router. ... ndler1) | src/subrouter.js:9:27:9:34 | handler1 | +| src/subrouter.js:10:3:10:41 | router. ... ndler2) | src/subrouter.js:10:33:10:40 | handler2 | +test_RouteHandlerExpr_getPreviousMiddleware +| src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | src/csurf-example.js:13:17:13:19 | api | +| src/csurf-example.js:17:9:17:22 | cookieParser() | src/csurf-example.js:16:9:16:50 | bodyPar ... alse }) | +| src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | src/csurf-example.js:17:9:17:22 | cookieParser() | +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:25:22:27:1 | functio ... ere')\\n} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:39:26:39:47 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/csurf-example.js:40:27:40:48 | functio ... res) {} | src/csurf-example.js:18:9:18:30 | csrf({ ... true }) | +| src/express.js:16:19:18:3 | functio ... ");\\n } | src/express.js:44:9:44:25 | getArrowHandler() | +| src/express.js:44:9:44:25 | getArrowHandler() | src/express.js:39:9:39:20 | getHandler() | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:44:9:44:25 | getArrowHandler() | +| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:4:19:4:25 | protect | +test_RequestExpr +| src/csurf-example.js:22:35:22:37 | req | src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | +| src/express2.js:3:46:3:48 | req | src/express2.js:3:25:3:55 | functio ... , res } | +| src/express2.js:4:60:4:66 | request | src/express2.js:4:32:4:76 | functio ... esult } | +| src/express3.js:5:14:5:16 | req | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express3.js:5:35:5:37 | req | src/express3.js:4:23:7:1 | functio ... al");\\n} | +| src/express4.js:5:27:5:29 | req | src/express4.js:4:23:6:1 | functio ... uery;\\n} | +| src/express.js:5:16:5:18 | req | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:6:26:6:28 | req | src/express.js:4:23:9:1 | functio ... res);\\n} | +| src/express.js:23:3:23:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:24:3:24:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:25:3:25:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:26:3:26:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:27:3:27:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:28:3:28:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:29:3:29:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:30:3:30:5 | req | src/express.js:22:30:32:1 | functio ... ar');\\n} | +| src/express.js:47:3:47:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:48:3:48:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:49:3:49:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/express.js:50:3:50:5 | req | src/express.js:46:22:51:1 | functio ... ame];\\n} | +| src/responseExprs.js:17:5:17:7 | req | src/responseExprs.js:16:30:42:1 | functio ... }\\n} | +test_RouteHandlerExpr_getAsSubRouter +| src/csurf-example.js:13:17:13:19 | api | src/csurf-example.js:30:16:30:35 | new express.Router() | +| src/express2.js:6:9:6:14 | router | src/express2.js:2:14:2:23 | e.Router() | +| src/subrouter.js:5:14:5:28 | makeSubRouter() | src/subrouter.js:8:16:8:31 | express.Router() | +test_Credentials +| src/auth.js:4:30:4:36 | 'admin' | user name | +| src/auth.js:4:39:4:48 | 'passw0rd' | password | +test_RouteHandler_getARequestExpr +| src/csurf-example.js:20:18:23:1 | functio ... () })\\n} | src/csurf-example.js:22:35:22:37 | req | +| src/express2.js:3:25:3:55 | functio ... , res } | src/express2.js:3:46:3:48 | req | +| src/express2.js:4:32:4:76 | functio ... esult } | src/express2.js:4:60:4:66 | request | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:14:5:16 | req | +| src/express3.js:4:23:7:1 | functio ... al");\\n} | src/express3.js:5:35:5:37 | req | +| src/express4.js:4:23:6:1 | functio ... uery;\\n} | src/express4.js:5:27:5:29 | req | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:5:16:5:18 | req | +| src/express.js:4:23:9:1 | functio ... res);\\n} | src/express.js:6:26:6:28 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:23:3:23:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:24:3:24:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:25:3:25:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:26:3:26:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:27:3:27:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:28:3:28:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:29:3:29:5 | req | +| src/express.js:22:30:32:1 | functio ... ar');\\n} | src/express.js:30:3:30:5 | req | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:47:3:47:5 | req | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:48:3:48:5 | req | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:49:3:49:5 | req | +| src/express.js:46:22:51:1 | functio ... ame];\\n} | src/express.js:50:3:50:5 | req | +| src/responseExprs.js:16:30:42:1 | functio ... }\\n} | src/responseExprs.js:17:5:17:7 | req | diff --git a/javascript/ql/test/library-tests/frameworks/Express/tests.ql b/javascript/ql/test/library-tests/frameworks/Express/tests.ql new file mode 100644 index 000000000000..fb603a17dd26 --- /dev/null +++ b/javascript/ql/test/library-tests/frameworks/Express/tests.ql @@ -0,0 +1,48 @@ +import RouteHandlerExpr_getBody +import RouteSetup +import RouteSetup_getLastRouteHandlerExpr +import RouterDefinition_getMiddlewareStackAt +import isRequest +import RouteSetup_getRouter +import RedirectInvocation +import StandardRouteHandler +import RequestInputAccess +import SetCookie +import RouteHandler_getAResponseHeader +import RouteSetup_handlesSameRequestMethodAs +import HeaderDefinition_defines +import ResponseExpr +import RouterDefinition_getARouteHandler +import CookieMiddlewareInstance +import RouteHandlerExpr_getNextMiddleware +import HeaderDefinition +import ExpressSession +import RequestBodyAccess +import RouteSetup_getServer +import HeaderDefinition_getAHeaderName +import HeaderAccess +import RouteHandlerExpr +import RouteSetup_handlesAllRequestMethods +import RouterDefinition_getASubRouter +import HeaderDefinition_getNameExpr +import appCreation +import RouteSetup_getRequestMethod +import RouteExpr +import RouteHandler_getAResponseExpr +import isResponse +import ResponseBody +import ResponseSendArgument +import RouteSetup_getARouteHandler +import RouteHandlerExpr_getAMatchingAncestor +import isRouterCreation +import RouteSetup_getRouteHandlerExpr +import RouterDefinition_RouterDefinition +import RouteHandler_getARequestBodyAccess +import RouterDefinition_getMiddlewareStack +import RouteHandler +import RouteSetup_getARouteHandlerExpr +import RouteHandlerExpr_getPreviousMiddleware +import RequestExpr +import RouteHandlerExpr_getAsSubRouter +import Credentials +import RouteHandler_getARequestExpr