Skip to content

Commit a542f18

Browse files
committed
chore: v0.3.0
1 parent 16adf72 commit a542f18

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/testdata/perfsprint.go

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func TestPerfsprint() {
2929
fmt.Sprint(ui) // want "fmt.Sprint can be replaced with faster strconv.FormatUint"
3030
fmt.Sprintf("%x", []byte{'a'}) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
3131
fmt.Errorf("hello") // want "fmt.Errorf can be replaced with errors.New"
32+
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"
3233

3334
fmt.Sprint("test", 42)
3435
fmt.Sprint(42, 42)

test/testdata/perfsprint_int_conversion.go

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func TestPerfsprint2() {
3030
fmt.Sprint(ui)
3131
fmt.Sprintf("%x", []byte{'a'}) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
3232
fmt.Errorf("hello") // want "fmt.Errorf can be replaced with errors.New"
33+
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"
3334

3435
fmt.Sprint("test", 42)
3536
fmt.Sprint(42, 42)

0 commit comments

Comments
 (0)