]> Cypherpunks repositories - gostls13.git/commitdiff
net/http, reflect: rename Test function names
authorJes Cok <xigua67damn@gmail.com>
Wed, 15 May 2024 22:49:49 +0000 (06:49 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 15 May 2024 23:39:44 +0000 (23:39 +0000)
To be consistent with other tests.

Change-Id: Ibea1d3bf57a295f024e05173d17112ce46a4f0bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/585895
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/net/http/fs_test.go
src/reflect/type_test.go

index 63278d890f78daef2b513c11d184cb5b65bd4757..2c3426f735271f63e65b22b75b1ed2346d4f026e 100644 (file)
@@ -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
index 40ae7131c3ae45d93a4e1be0787fdc529281d0df..51abc0776cd4f13a5c9b9ce21247573b50502d26 100644 (file)
@@ -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