var traceErrs …
const testdata …
func getFile(fset *token.FileSet, filename string) (file *token.File) { … }
func getPos(fset *token.FileSet, filename string, offset int) token.Pos { … }
var errRx …
func expectedErrors(fset *token.FileSet, filename string, src []byte) map[token.Pos]string { … }
func compareErrors(t *testing.T, fset *token.FileSet, expected map[token.Pos]string, found scanner.ErrorList) { … }
func checkErrors(t *testing.T, filename string, input any, mode Mode, expectErrors bool) { … }
func TestErrors(t *testing.T) { … }