aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/version_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/version_test.go')
-rw-r--r--src/go/types/version_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/go/types/version_test.go b/src/go/types/version_test.go
deleted file mode 100644
index d25f7f5e67..0000000000
--- a/src/go/types/version_test.go
+++ /dev/null
@@ -1,26 +0,0 @@
-// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
-
-// Copyright 2023 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"
-
-var parseGoVersionTests = []struct {
- in string
- out version
-}{
- {"go1.21", version{1, 21}},
- {"go1.21.0", version{1, 21}},
- {"go1.21rc2", version{1, 21}},
-}
-
-func TestParseGoVersion(t *testing.T) {
- for _, tt := range parseGoVersionTests {
- if out, err := parseGoVersion(tt.in); out != tt.out || err != nil {
- t.Errorf("parseGoVersion(%q) = %v, %v, want %v, nil", tt.in, out, err, tt.out)
- }
- }
-}