TestmainGo *[]byte // content for _testmain.go
Embed map[string][]string // //go:embed comment mapping
OrigImportPath string // original import path before adding '_test' suffix
+ Directives []build.Directive
+ TestDirectives []build.Directive
+ XTestDirectives []build.Directive
Asmflags []string // -asmflags for this package
Gcflags []string // -gcflags for this package
p.TestEmbedPatterns = pp.TestEmbedPatterns
p.XTestEmbedPatterns = pp.XTestEmbedPatterns
p.Internal.OrigImportPath = pp.ImportPath
+ p.Internal.Directives = pp.Directives
+ p.Internal.TestDirectives = pp.TestDirectives
+ p.Internal.XTestDirectives = pp.XTestDirectives
}
// A PackageError describes an error loading information about a package.