mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Package tests: also select raw database path
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
| package github.com/nonexistent-test-pkg | github.com/nonexistent-test-pkg |
|
||||
| package semmle.go.Packages | semmle.go.Packages |
|
||||
| package github.com/nonexistent-test-pkg | github.com/nonexistent-test-pkg | github.com/nonexistent-test-pkg |
|
||||
| package semmle.go.Packages | semmle.go.Packages | semmle.go.Packages |
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import go
|
||||
|
||||
from Package pkg
|
||||
from Package pkg, string fullpath
|
||||
where
|
||||
pkg.getPath().matches("%github.com/nonexistent-test-pkg%")
|
||||
or
|
||||
pkg.getPath().matches("semmle.go.Packages%")
|
||||
select pkg, pkg.getPath()
|
||||
packages(pkg, _, fullpath, _) and
|
||||
(
|
||||
pkg.getPath().matches("%github.com/nonexistent-test-pkg%")
|
||||
or
|
||||
pkg.getPath().matches("semmle.go.Packages%")
|
||||
)
|
||||
select pkg, pkg.getPath(), fullpath
|
||||
|
||||
Reference in New Issue
Block a user