mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Add files needed for tests
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -7,5 +7,6 @@ import (
|
||||
func test() {
|
||||
|
||||
r := rate.Limit(1)
|
||||
_ = r
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -7,5 +7,6 @@ import (
|
||||
func test() {
|
||||
|
||||
x := rate.Limit(1)
|
||||
_ = x
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
@@ -0,0 +1,4 @@
|
||||
htmlFiles
|
||||
extractionErrors
|
||||
#select
|
||||
| test.go:0:0:0:0 | test.go |
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="go")
|
||||
@@ -0,0 +1,9 @@
|
||||
import go
|
||||
import semmle.go.DiagnosticsReporting
|
||||
|
||||
from GoFile f
|
||||
select f
|
||||
|
||||
query predicate htmlFiles(HtmlFile x) { any() }
|
||||
|
||||
query predicate extractionErrors(string msg, int sev) { reportableDiagnostics(_, msg, sev) }
|
||||
4
go/ql/integration-tests/all-platforms/go/qlpack.yml
Normal file
4
go/ql/integration-tests/all-platforms/go/qlpack.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
dependencies:
|
||||
codeql/go-all: '*'
|
||||
codeql/go-tests: '*'
|
||||
codeql/go-queries: '*'
|
||||
Reference in New Issue
Block a user