Remove badpkg.go to make tests location-independent

This commit is contained in:
Sauyon Lee
2021-04-26 23:58:45 -07:00
parent 03c3b15caa
commit d09cb7f228
3 changed files with 0 additions and 18 deletions

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -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)
}