mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Add two new tests.
This commit is contained in:
13
ql/test/library-tests/semmle/go/Scopes/EntityRead.expected
Normal file
13
ql/test/library-tests/semmle/go/Scopes/EntityRead.expected
Normal file
@@ -0,0 +1,13 @@
|
||||
| Println | main.go:10:2:10:12 | selection of Println |
|
||||
| a | types.go:25:9:25:9 | a |
|
||||
| false | types.go:15:9:15:13 | false |
|
||||
| meth | main.go:18:2:18:7 | selection of meth |
|
||||
| meth | main.go:19:2:19:7 | selection of meth |
|
||||
| meth | main.go:20:2:20:10 | selection of meth |
|
||||
| recv | main.go:14:9:14:12 | recv |
|
||||
| recv | main.go:24:2:24:5 | recv |
|
||||
| x | main.go:14:9:14:14 | selection of x |
|
||||
| x | main.go:18:2:18:2 | x |
|
||||
| x | main.go:24:2:24:7 | selection of x |
|
||||
| y | main.go:19:2:19:2 | y |
|
||||
| y | main.go:20:12:20:12 | y |
|
||||
4
ql/test/library-tests/semmle/go/Scopes/EntityRead.ql
Normal file
4
ql/test/library-tests/semmle/go/Scopes/EntityRead.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import go
|
||||
|
||||
from ValueEntity e
|
||||
select e, e.getARead()
|
||||
@@ -0,0 +1,6 @@
|
||||
| a | types.go:24:22:24:22 | initialization of a |
|
||||
| recv | main.go:13:7:13:10 | initialization of recv |
|
||||
| recv | main.go:23:7:23:10 | initialization of recv |
|
||||
| x | main.go:17:10:17:10 | initialization of x |
|
||||
| x | main.go:24:2:24:9 | increment statement |
|
||||
| y | main.go:17:26:17:26 | initialization of y |
|
||||
4
ql/test/library-tests/semmle/go/Scopes/EntityWrite.ql
Normal file
4
ql/test/library-tests/semmle/go/Scopes/EntityWrite.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import go
|
||||
|
||||
from ValueEntity e
|
||||
select e, e.getAWrite()
|
||||
Reference in New Issue
Block a user