Skip to content

Commit 69f18ee

Browse files
committed
Rename some test functions name so that mean test case collectly
1 parent e77d240 commit 69f18ee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/testdata/wastedassign.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ func p(x int) int {
99
return x + 1
1010
}
1111

12-
func multiple(val interface{}, times uint) interface{} {
13-
14-
switch hogehoge := val.(type) {
12+
func typeSwitchNoError(val interface{}, times uint) interface{} {
13+
switch hoge := val.(type) {
1514
case int:
1615
return 12
1716
case string:
18-
return strings.Repeat(hogehoge, int(times))
17+
return strings.Repeat(hoge, int(times))
1918
default:
2019
return nil
2120
}
2221
}
2322

24-
func noUseParams(params string) int {
23+
func noUseParamsNoError(params string) int {
2524
a := 12
2625
println(a)
2726
return a

0 commit comments

Comments
 (0)