From 2086a0a691c028d6ad0311fe7310f2c003833844 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 20 Feb 2020 05:02:56 +0000 Subject: [PATCH] go/internal/gcimporter: update TestImportedTypes for BImportData removal BImportData was removed from the standard library in CL 143023. Update TestImportedTypes test data to use FindPkg instead. Updates golang/go#27999. Change-Id: I8ddb061da31187cc4a3b1c65f2d82d379a6c1066 Reviewed-on: https://go-review.googlesource.com/c/tools/+/220277 Run-TryBot: Dmitri Shuralyov Reviewed-by: Robert Griesemer TryBot-Result: Gobot Gobot --- go/internal/gcimporter/gcimporter11_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/internal/gcimporter/gcimporter11_test.go b/go/internal/gcimporter/gcimporter11_test.go index 18186817bb..627300d08d 100644 --- a/go/internal/gcimporter/gcimporter11_test.go +++ b/go/internal/gcimporter/gcimporter11_test.go @@ -25,7 +25,7 @@ var importedObjectTests = []struct { {"math.Pi", "const Pi untyped float"}, {"math.Sin", "func Sin(x float64) float64"}, {"go/ast.NotNilFilter", "func NotNilFilter(_ string, v reflect.Value) bool"}, - {"go/internal/gcimporter.BImportData", "func BImportData(fset *go/token.FileSet, imports map[string]*go/types.Package, data []byte, path string) (_ int, pkg *go/types.Package, err error)"}, + {"go/internal/gcimporter.FindPkg", "func FindPkg(path string, srcDir string) (filename string, id string)"}, // interfaces {"context.Context", "type Context interface{Deadline() (deadline time.Time, ok bool); Done() <-chan struct{}; Err() error; Value(key interface{}) interface{}}"},