From: Jes Cok Date: Wed, 15 May 2024 22:49:49 +0000 (+0800) Subject: net/http, reflect: rename Test function names X-Git-Tag: go1.23rc1~327 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ae5ee7042ec8e1fa9d88d7b8c284d3fb8fef4f58;p=gostls13.git net/http, reflect: rename Test function names To be consistent with other tests. Change-Id: Ibea1d3bf57a295f024e05173d17112ce46a4f0bc Reviewed-on: https://go-review.googlesource.com/c/go/+/585895 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil Auto-Submit: Damien Neil Auto-Submit: Ian Lance Taylor --- diff --git a/src/net/http/fs_test.go b/src/net/http/fs_test.go index 63278d890f..2c3426f735 100644 --- a/src/net/http/fs_test.go +++ b/src/net/http/fs_test.go @@ -1456,7 +1456,7 @@ func (d fileServerCleanPathDir) Open(path string) (File, error) { type panicOnSeek struct{ io.ReadSeeker } -func Test_scanETag(t *testing.T) { +func TestScanETag(t *testing.T) { tests := []struct { in string wantETag string diff --git a/src/reflect/type_test.go b/src/reflect/type_test.go index 40ae7131c3..51abc0776c 100644 --- a/src/reflect/type_test.go +++ b/src/reflect/type_test.go @@ -118,7 +118,7 @@ func BenchmarkTypeForError(b *testing.B) { } } -func Test_Type_CanSeq(t *testing.T) { +func TestType_CanSeq(t *testing.T) { tests := []struct { name string tr reflect.Type @@ -143,7 +143,7 @@ func Test_Type_CanSeq(t *testing.T) { } } -func Test_Type_CanSeq2(t *testing.T) { +func TestType_CanSeq2(t *testing.T) { tests := []struct { name string tr reflect.Type