go/pkg/mod/golang.org/x/[email protected]/internal/gcimporter/iexport_test.go

func readExportFile(filename string) ([]byte, error) {}

func iexport(fset *token.FileSet, version int, pkg *types.Package) ([]byte, error) {}

// isUnifiedBuilder reports whether we are executing on a go builder that uses
// unified export data.
func isUnifiedBuilder() bool {}

const minStdlibPackages

func TestIExportData_stdlib(t *testing.T) {}

func testPkgData(t *testing.T, fset *token.FileSet, version int, pkg *types.Package, exportdata []byte) {}

func testPkg(t *testing.T, fset *token.FileSet, version int, pkg *types.Package, fset2 *token.FileSet, pkg2 *types.Package) {}

// TestIExportData_long tests the position of an import object declared in
// a very long input file.  Line numbers greater than maxlines are
// reported as line 1, not garbage or token.NoPos.
func TestIExportData_long(t *testing.T) {}

func TestIExportData_typealiases(t *testing.T) {}

// cmpObj reports how x and y differ. They are assumed to belong to different
// universes so cannot be compared directly. It is an adapted version of
// equalObj in bexport_test.go.
func cmpObj(x, y types.Object) error {}

const mpprec

// same compares non-complex numeric values and reports if they are approximately equal.
func same(x, y constant.Value) bool {}

// copy of the function with the same name in iexport.go.
func constantToFloat(x constant.Value) *big.Float {}

// copy of the function with the same name in iexport.go.
func valueToRat(x constant.Value) *big.Rat {}

// This is a regression test for a bug in iexport of types.Struct:
// unexported fields were losing their implicit package qualifier.
func TestUnexportedStructFields(t *testing.T) {}

type importerFunc

func (f importerFunc) Import(path string) (*types.Package, error) {}