Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Dec 3, 2023
1 parent b3e963a commit 77fd245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/testdata/perfsprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package testdata

import (
"fmt"
"fmt" // want "Fix imports"
)

func TestPerfsprint() {
Expand Down
6 changes: 3 additions & 3 deletions test/testdata/perfsprint_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package testdata

import (
"fmt"
"fmt" // want "Fix imports"
)

func TestPerfsprint2() {
Expand All @@ -29,8 +29,8 @@ func TestPerfsprint2() {
fmt.Sprintf("%d", ui)
fmt.Sprint(ui)
fmt.Sprintf("%x", []byte{'a'}) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
fmt.Errorf("hello") // want "fmt.Errorf can be replaced with errors.New"
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"
fmt.Errorf("hello")
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"

fmt.Sprint("test", 42)
fmt.Sprint(42, 42)
Expand Down

0 comments on commit 77fd245

Please sign in to comment.