Skip to content

Commit c2c305d

Browse files
committed
Modify all testsdata tests to obide by mixedcase change
1 parent bc1d38d commit c2c305d

File tree

35 files changed

+115
-153
lines changed

35 files changed

+115
-153
lines changed

testdata/goldens/custom_importer_fails.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestFooFilter(t *testing.T) {
1515
want []*Bar
1616
wantErr bool
1717
}{
18-
// TODO: Add test cases.
18+
// TODO: Add test cases.
1919
}
2020
for _, tt := range tests {
2121
got, err := FooFilter(tt.args.strs)
@@ -29,7 +29,7 @@ func TestFooFilter(t *testing.T) {
2929
}
3030
}
3131

32-
func TestBar_BarFilter(t *testing.T) {
32+
func TestBarBarFilter(t *testing.T) {
3333
type args struct {
3434
i interface{}
3535
}
@@ -39,7 +39,7 @@ func TestBar_BarFilter(t *testing.T) {
3939
args args
4040
wantErr bool
4141
}{
42-
// TODO: Add test cases.
42+
// TODO: Add test cases.
4343
}
4444
for _, tt := range tests {
4545
b := &Bar{}
@@ -49,7 +49,7 @@ func TestBar_BarFilter(t *testing.T) {
4949
}
5050
}
5151

52-
func Test_bazFilter(t *testing.T) {
52+
func TestBazFilter(t *testing.T) {
5353
type args struct {
5454
f *float64
5555
}
@@ -58,7 +58,7 @@ func Test_bazFilter(t *testing.T) {
5858
args args
5959
want float64
6060
}{
61-
// TODO: Add test cases.
61+
// TODO: Add test cases.
6262
}
6363
for _, tt := range tests {
6464
if got := bazFilter(tt.args.f); got != tt.want {

testdata/goldens/different_packages_in_same_directory_-_part_1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package bar
22

33
import "testing"
44

5-
func TestBar_Bar(t *testing.T) {
5+
func TestBarBar(t *testing.T) {
66
type fields struct {
77
Foo string
88
}
@@ -15,7 +15,7 @@ func TestBar_Bar(t *testing.T) {
1515
args args
1616
wantErr bool
1717
}{
18-
// TODO: Add test cases.
18+
// TODO: Add test cases.
1919
}
2020
for _, tt := range tests {
2121
b := &Bar{

testdata/goldens/different_packages_in_same_directory_-_part_2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package foo
22

33
import "testing"
44

5-
func TestFoo_Foo(t *testing.T) {
5+
func TestFooFoo(t *testing.T) {
66
type fields struct {
77
Bar string
88
}
@@ -15,7 +15,7 @@ func TestFoo_Foo(t *testing.T) {
1515
args args
1616
wantErr bool
1717
}{
18-
// TODO: Add test cases.
18+
// TODO: Add test cases.
1919
}
2020
for _, tt := range tests {
2121
f := &Foo{

testdata/goldens/existing_test_file.go

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestFoo100(t *testing.T) {
5555
want []*Bar
5656
wantErr bool
5757
}{
58-
// TODO: Add test cases.
58+
// TODO: Add test cases.
5959
}
6060
for _, tt := range tests {
6161
got, err := Foo100(tt.args.strs)
@@ -68,41 +68,3 @@ func TestFoo100(t *testing.T) {
6868
}
6969
}
7070
}
71-
72-
func TestBar_Bar100(t *testing.T) {
73-
type args struct {
74-
i interface{}
75-
}
76-
tests := []struct {
77-
name string
78-
b *Bar
79-
args args
80-
wantErr bool
81-
}{
82-
// TODO: Add test cases.
83-
}
84-
for _, tt := range tests {
85-
b := &Bar{}
86-
if err := b.Bar100(tt.args.i); (err != nil) != tt.wantErr {
87-
t.Errorf("%q. Bar.Bar100() error = %v, wantErr %v", tt.name, err, tt.wantErr)
88-
}
89-
}
90-
}
91-
92-
func Test_baz100(t *testing.T) {
93-
type args struct {
94-
f *float64
95-
}
96-
tests := []struct {
97-
name string
98-
args args
99-
want float64
100-
}{
101-
// TODO: Add test cases.
102-
}
103-
for _, tt := range tests {
104-
if got := baz100(tt.args.f); got != tt.want {
105-
t.Errorf("%q. baz100() = %v, want %v", tt.name, got, tt.want)
106-
}
107-
}
108-
}

testdata/goldens/functions_and_methods_with_name_receivers_parameters_and_results.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package testdata
22

33
import "testing"
44

5-
func Test_name_Name(t *testing.T) {
5+
func TestNameName(t *testing.T) {
66
type args struct {
77
n string
88
}
@@ -12,7 +12,7 @@ func Test_name_Name(t *testing.T) {
1212
args args
1313
want string
1414
}{
15-
// TODO: Add test cases.
15+
// TODO: Add test cases.
1616
}
1717
for _, tt := range tests {
1818
if got := tt.n.Name(tt.args.n); got != tt.want {
@@ -21,7 +21,7 @@ func Test_name_Name(t *testing.T) {
2121
}
2222
}
2323

24-
func TestName_Name1(t *testing.T) {
24+
func TestNameName1(t *testing.T) {
2525
type fields struct {
2626
Name string
2727
}
@@ -34,7 +34,7 @@ func TestName_Name1(t *testing.T) {
3434
args args
3535
want string
3636
}{
37-
// TODO: Add test cases.
37+
// TODO: Add test cases.
3838
}
3939
for _, tt := range tests {
4040
n := &Name{
@@ -46,7 +46,7 @@ func TestName_Name1(t *testing.T) {
4646
}
4747
}
4848

49-
func TestName_Name2(t *testing.T) {
49+
func TestNameName2(t *testing.T) {
5050
type fields struct {
5151
Name string
5252
}
@@ -59,7 +59,7 @@ func TestName_Name2(t *testing.T) {
5959
args args
6060
want string
6161
}{
62-
// TODO: Add test cases.
62+
// TODO: Add test cases.
6363
}
6464
for _, tt := range tests {
6565
n := &Name{
@@ -71,7 +71,7 @@ func TestName_Name2(t *testing.T) {
7171
}
7272
}
7373

74-
func TestName_Name3(t *testing.T) {
74+
func TestNameName3(t *testing.T) {
7575
type fields struct {
7676
Name string
7777
}
@@ -84,7 +84,7 @@ func TestName_Name3(t *testing.T) {
8484
args args
8585
wantName string
8686
}{
87-
// TODO: Add test cases.
87+
// TODO: Add test cases.
8888
}
8989
for _, tt := range tests {
9090
n := &Name{

testdata/goldens/functions_and_receivers_with_same_names_except_exporting.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ func TestSameName(t *testing.T) {
88
want int
99
wantErr bool
1010
}{
11-
// TODO: Add test cases.
11+
// TODO: Add test cases.
1212
}
1313
for _, tt := range tests {
1414
got, err := SameName()
@@ -22,13 +22,13 @@ func TestSameName(t *testing.T) {
2222
}
2323
}
2424

25-
func Test_sameName(t *testing.T) {
25+
func TestSameName(t *testing.T) {
2626
tests := []struct {
2727
name string
2828
want int
2929
wantErr bool
3030
}{
31-
// TODO: Add test cases.
31+
// TODO: Add test cases.
3232
}
3333
for _, tt := range tests {
3434
got, err := sameName()
@@ -42,14 +42,14 @@ func Test_sameName(t *testing.T) {
4242
}
4343
}
4444

45-
func TestSameTypeName_SameName(t *testing.T) {
45+
func TestSameTypeNameSameName(t *testing.T) {
4646
tests := []struct {
4747
name string
4848
t *SameTypeName
4949
want int
5050
wantErr bool
5151
}{
52-
// TODO: Add test cases.
52+
// TODO: Add test cases.
5353
}
5454
for _, tt := range tests {
5555
t := &SameTypeName{}
@@ -64,14 +64,14 @@ func TestSameTypeName_SameName(t *testing.T) {
6464
}
6565
}
6666

67-
func TestSameTypeName_sameName(t *testing.T) {
67+
func TestSameTypeNameSameName(t *testing.T) {
6868
tests := []struct {
6969
name string
7070
t *SameTypeName
7171
want int
7272
wantErr bool
7373
}{
74-
// TODO: Add test cases.
74+
// TODO: Add test cases.
7575
}
7676
for _, tt := range tests {
7777
t := &SameTypeName{}
@@ -86,14 +86,14 @@ func TestSameTypeName_sameName(t *testing.T) {
8686
}
8787
}
8888

89-
func Test_sameTypeName_SameName(t *testing.T) {
89+
func TestSameTypeNameSameName(t *testing.T) {
9090
tests := []struct {
9191
name string
9292
t *sameTypeName
9393
want int
9494
wantErr bool
9595
}{
96-
// TODO: Add test cases.
96+
// TODO: Add test cases.
9797
}
9898
for _, tt := range tests {
9999
t := &sameTypeName{}
@@ -108,14 +108,14 @@ func Test_sameTypeName_SameName(t *testing.T) {
108108
}
109109
}
110110

111-
func Test_sameTypeName_sameName(t *testing.T) {
111+
func TestSameTypeNameSameName(t *testing.T) {
112112
tests := []struct {
113113
name string
114114
t *sameTypeName
115115
want int
116116
wantErr bool
117117
}{
118-
// TODO: Add test cases.
118+
// TODO: Add test cases.
119119
}
120120
for _, tt := range tests {
121121
t := &sameTypeName{}

testdata/goldens/io_writer_parameters.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import (
55
"testing"
66
)
77

8-
func TestBar_Write(t *testing.T) {
8+
func TestBarWrite(t *testing.T) {
99
tests := []struct {
1010
name string
1111
b *Bar
1212
wantW string
1313
wantErr bool
1414
}{
15-
// TODO: Add test cases.
15+
// TODO: Add test cases.
1616
}
1717
for _, tt := range tests {
1818
b := &Bar{}
@@ -37,7 +37,7 @@ func TestWrite(t *testing.T) {
3737
wantW string
3838
wantErr bool
3939
}{
40-
// TODO: Add test cases.
40+
// TODO: Add test cases.
4141
}
4242
for _, tt := range tests {
4343
w := &bytes.Buffer{}
@@ -64,7 +64,7 @@ func TestMultiWrite(t *testing.T) {
6464
wantW2 string
6565
wantErr bool
6666
}{
67-
// TODO: Add test cases.
67+
// TODO: Add test cases.
6868
}
6969
for _, tt := range tests {
7070
w1 := &bytes.Buffer{}

testdata/goldens/method_on_a_struct_pointer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package testdata
22

33
import "testing"
44

5-
func TestBar_Foo7(t *testing.T) {
5+
func TestBarFoo7(t *testing.T) {
66
type args struct {
77
i int
88
}
@@ -13,7 +13,7 @@ func TestBar_Foo7(t *testing.T) {
1313
want string
1414
wantErr bool
1515
}{
16-
// TODO: Add test cases.
16+
// TODO: Add test cases.
1717
}
1818
for _, tt := range tests {
1919
b := &Bar{}

testdata/goldens/multiple_functions.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestFooFilter(t *testing.T) {
1515
want []*Bar
1616
wantErr bool
1717
}{
18-
// TODO: Add test cases.
18+
// TODO: Add test cases.
1919
}
2020
for _, tt := range tests {
2121
got, err := FooFilter(tt.args.strs)
@@ -29,7 +29,7 @@ func TestFooFilter(t *testing.T) {
2929
}
3030
}
3131

32-
func TestBar_BarFilter(t *testing.T) {
32+
func TestBarBarFilter(t *testing.T) {
3333
type args struct {
3434
i interface{}
3535
}
@@ -39,7 +39,7 @@ func TestBar_BarFilter(t *testing.T) {
3939
args args
4040
wantErr bool
4141
}{
42-
// TODO: Add test cases.
42+
// TODO: Add test cases.
4343
}
4444
for _, tt := range tests {
4545
b := &Bar{}
@@ -49,7 +49,7 @@ func TestBar_BarFilter(t *testing.T) {
4949
}
5050
}
5151

52-
func Test_bazFilter(t *testing.T) {
52+
func TestBazFilter(t *testing.T) {
5353
type args struct {
5454
f *float64
5555
}
@@ -58,7 +58,7 @@ func Test_bazFilter(t *testing.T) {
5858
args args
5959
want float64
6060
}{
61-
// TODO: Add test cases.
61+
// TODO: Add test cases.
6262
}
6363
for _, tt := range tests {
6464
if got := bazFilter(tt.args.f); got != tt.want {

0 commit comments

Comments
 (0)