var isRace … func fileLine(fset *token.FileSet, obj types.Object) string { … } func equalType(x, y types.Type) error { … } // cmpNamed compares two named types x and y, returning an error for any // discrepancies. It does not compare their underlying types. func cmpNamed(x, y *types.Named) error { … } // makeExplicit returns an explicit version of typ, if typ is an implicit // interface. Otherwise it returns typ unmodified. func makeExplicit(typ types.Type) types.Type { … } func equalTypeArgs(x, y *types.TypeList) error { … } func equalTypeParams(x, y *types.TypeParamList) error { … } // TestVeryLongFile 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 TestVeryLongFile(t *testing.T) { … } const src … func checkPkg(t *testing.T, pkg *types.Package, label string) { … }