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"
|
. "golang.org/x/tools/go/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var sources = []string{
|
func TestResolveIdents(t *testing.T) {
|
||||||
|
skipSpecialPlatforms(t)
|
||||||
|
|
||||||
|
sources := []string{
|
||||||
`
|
`
|
||||||
package p
|
package p
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
@ -83,14 +86,11 @@ var sources = []string{
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|
||||||
var pkgnames = []string{
|
pkgnames := []string{
|
||||||
"fmt",
|
"fmt",
|
||||||
"math",
|
"math",
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestResolveIdents(t *testing.T) {
|
|
||||||
skipSpecialPlatforms(t)
|
|
||||||
|
|
||||||
// parse package files
|
// parse package files
|
||||||
fset := token.NewFileSet()
|
fset := token.NewFileSet()
|
||||||
var files []*ast.File
|
var files []*ast.File
|
||||||
|
|
Loading…
Reference in New Issue