go/types: remove global vars in test
Change-Id: I5fb61a38362a40c706ba5cb8968c387c8dc4aef2 Reviewed-on: https://go-review.googlesource.com/10992 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
665374f1c8
commit
568df9f49c
|
@ -16,7 +16,10 @@ import (
|
|||
. "golang.org/x/tools/go/types"
|
||||
)
|
||||
|
||||
var sources = []string{
|
||||
func TestResolveIdents(t *testing.T) {
|
||||
skipSpecialPlatforms(t)
|
||||
|
||||
sources := []string{
|
||||
`
|
||||
package p
|
||||
import "fmt"
|
||||
|
@ -81,15 +84,12 @@ var sources = []string{
|
|||
L2:
|
||||
}
|
||||
`,
|
||||
}
|
||||
}
|
||||
|
||||
var pkgnames = []string{
|
||||
pkgnames := []string{
|
||||
"fmt",
|
||||
"math",
|
||||
}
|
||||
|
||||
func TestResolveIdents(t *testing.T) {
|
||||
skipSpecialPlatforms(t)
|
||||
}
|
||||
|
||||
// parse package files
|
||||
fset := token.NewFileSet()
|
||||
|
|
Loading…
Reference in New Issue