Skip to content

Commit a80ae3b

Browse files
committed
Add post-processing to Beego tests
1 parent 9125fe6 commit a80ae3b

File tree

7 files changed

+211
-178
lines changed

7 files changed

+211
-178
lines changed

go/ql/test/library-tests/semmle/go/frameworks/Beego/CleartextLogging.expected

Lines changed: 80 additions & 57 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
Security/CWE-312/CleartextLogging.ql
1+
query: Security/CWE-312/CleartextLogging.ql
2+
postprocess:
3+
- utils/test/PrettyPrintModels.ql
4+
- utils/test/InlineExpectationsTestQuery.ql
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
#select
2+
| test.go:253:13:253:34 | call to GetString | test.go:253:13:253:34 | call to GetString | test.go:253:13:253:34 | call to GetString | This path to an untrusted URL redirection depends on a $@. | test.go:253:13:253:34 | call to GetString | user-provided value |
3+
| test.go:254:20:254:41 | call to GetString | test.go:254:20:254:41 | call to GetString | test.go:254:20:254:41 | call to GetString | This path to an untrusted URL redirection depends on a $@. | test.go:254:20:254:41 | call to GetString | user-provided value |
14
edges
25
nodes
36
| test.go:253:13:253:34 | call to GetString | semmle.label | call to GetString |
47
| test.go:254:20:254:41 | call to GetString | semmle.label | call to GetString |
58
| test.go:317:13:317:27 | call to URI | semmle.label | call to URI |
69
| test.go:318:20:318:34 | call to URL | semmle.label | call to URL |
710
subpaths
8-
#select
9-
| test.go:253:13:253:34 | call to GetString | test.go:253:13:253:34 | call to GetString | test.go:253:13:253:34 | call to GetString | This path to an untrusted URL redirection depends on a $@. | test.go:253:13:253:34 | call to GetString | user-provided value |
10-
| test.go:254:20:254:41 | call to GetString | test.go:254:20:254:41 | call to GetString | test.go:254:20:254:41 | call to GetString | This path to an untrusted URL redirection depends on a $@. | test.go:254:20:254:41 | call to GetString | user-provided value |
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
Security/CWE-601/OpenUrlRedirect.ql
1+
query: Security/CWE-601/OpenUrlRedirect.ql
2+
postprocess:
3+
- utils/test/PrettyPrintModels.ql
4+
- utils/test/InlineExpectationsTestQuery.ql
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
query: Security/CWE-079/ReflectedXss.ql
2-
postprocess: utils/test/PrettyPrintModels.ql
2+
postprocess:
3+
- utils/test/PrettyPrintModels.ql
4+
- utils/test/InlineExpectationsTestQuery.ql
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
query: Security/CWE-022/TaintedPath.ql
2-
postprocess: utils/test/PrettyPrintModels.ql
2+
postprocess:
3+
- utils/test/PrettyPrintModels.ql
4+
- utils/test/InlineExpectationsTestQuery.ql

go/ql/test/library-tests/semmle/go/frameworks/Beego/test.go

Lines changed: 114 additions & 114 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)