mirror of
https://github.com/golang/go
synced 2024-11-17 09:24:43 -07:00
go/types: generate errors_test.go from types2 source
This CL reduces the amount of code that needs to be maintained manually by about 50 LOC. Change-Id: I022688d6db58bf58e7844487582725a23ca820be Reviewed-on: https://go-review.googlesource.com/c/go/+/566515 Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
720306359a
commit
b899e0b8cc
@ -1,12 +1,12 @@
|
||||
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
|
||||
|
||||
// Copyright 2020 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package types
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
import "testing"
|
||||
|
||||
func TestError(t *testing.T) {
|
||||
var err error_
|
||||
|
@ -117,10 +117,11 @@ var filemap = map[string]action{
|
||||
renameIdents(f, "syntax->ast")
|
||||
},
|
||||
"chan.go": nil,
|
||||
"const.go": func(f *ast.File) { fixTokenPos(f) },
|
||||
"const.go": fixTokenPos,
|
||||
"context.go": nil,
|
||||
"context_test.go": nil,
|
||||
"conversions.go": nil,
|
||||
"errors_test.go": func(f *ast.File) { renameIdents(f, "nopos->noposn") },
|
||||
"errsupport.go": nil,
|
||||
"gccgosizes.go": nil,
|
||||
"gcsizes.go": func(f *ast.File) { renameIdents(f, "IsSyncAtomicAlign64->_IsSyncAtomicAlign64") },
|
||||
|
Loading…
Reference in New Issue
Block a user