mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
Remove badpkg.go to make tests location-independent
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
| ../Diagnostics:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' |
|
||||
| bad.go:3:1:3:1 | expected 'package', found avvu |
|
||||
| badpkg.go:4:2:4:2 | cannot find package "." in:\n\t/home/sauyon/devel/semmlego/vendor/github.com/github/nonexistent |
|
||||
| badpkg.go:4:2:4:2 | could not import github.com/github/nonexistent (invalid package name: "") |
|
||||
| type.go:11:9:11:9 | cannot use v (variable of type V) as T value in argument to takesT |
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
| Extraction failed in query-tests/Diagnostics/badpkg.go with error cannot find package "." in:\n\t/home/sauyon/devel/semmlego/vendor/github.com/github/nonexistent | 2 |
|
||||
| Extraction failed in query-tests/Diagnostics/badpkg.go with error could not import github.com/github/nonexistent (invalid package name: "") | 2 |
|
||||
| Extraction failed in query-tests/Diagnostics/type.go with error cannot use v (variable of type V) as T value in argument to takesT | 2 |
|
||||
| Extraction failed with error expected 'package', found avvu | 2 |
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/github/nonexistent"
|
||||
)
|
||||
|
||||
func test0() {
|
||||
var v nonexistent.T
|
||||
nonexistent.F()
|
||||
|
||||
w := nonexistent.K
|
||||
|
||||
use(v, w)
|
||||
}
|
||||
Reference in New Issue
Block a user