Skip to content

Commit

Permalink
Rename some test functions name so that mean test case collectly
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho committed Feb 21, 2021
1 parent 1139493 commit 0110a1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/testdata/wastedassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ func p(x int) int {
return x + 1
}

func multiple(val interface{}, times uint) interface{} {

switch hogehoge := val.(type) {
func typeSwitchNoError(val interface{}, times uint) interface{} {
switch hoge := val.(type) {
case int:
return 12
case string:
return strings.Repeat(hogehoge, int(times))
return strings.Repeat(hoge, int(times))
default:
return nil
}
}

func noUseParams(params string) int {
func noUseParamsNoError(params string) int {
a := 12
println(a)
return a
Expand Down

0 comments on commit 0110a1b

Please sign in to comment.