Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 10, 2023
1 parent 67a538e commit 9a52a74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flate/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestWriterMemUsage(t *testing.T) {
t.Logf("%s: Memory Used: %dKB, %d allocs", t.Name(), (after.HeapInuse-before.HeapInuse)/1024, after.HeapObjects-before.HeapObjects)
}
data := make([]byte, 100000)
t.Run(fmt.Sprint("stateless"), func(t *testing.T) {
t.Run("stateless", func(t *testing.T) {
testMem(t, func() {
StatelessDeflate(io.Discard, data, false, nil)
})
Expand Down
4 changes: 2 additions & 2 deletions s2/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestSeeking(t *testing.T) {
})
}
// Test seek current
t.Run(fmt.Sprintf("seekCurrent"), func(t *testing.T) {
t.Run("seekCurrent", func(t *testing.T) {
dec := s2.NewReader(io.ReadSeeker(bytes.NewReader(compressed.Bytes())))

seeker, err := dec.ReadSeeker(true, index)
Expand Down Expand Up @@ -269,7 +269,7 @@ func TestSeeking(t *testing.T) {
}
})
// Test ReadAt
t.Run(fmt.Sprintf("ReadAt"), func(t *testing.T) {
t.Run("ReadAt", func(t *testing.T) {
dec := s2.NewReader(io.ReadSeeker(bytes.NewReader(compressed.Bytes())))

seeker, err := dec.ReadSeeker(true, index)
Expand Down
2 changes: 1 addition & 1 deletion s2/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func TestIndex(t *testing.T) {
}
})
}
t.Run(fmt.Sprintf("ReadAt"), func(t *testing.T) {
t.Run("ReadAt", func(t *testing.T) {
// Read it from a seekable stream
dec = NewReader(bytes.NewReader(compressed))

Expand Down

0 comments on commit 9a52a74

Please sign in to comment.