We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b3db5 commit bb0a299Copy full SHA for bb0a299
1 file changed
cmd/gocacheprog/main_test.go
@@ -10,7 +10,7 @@ import (
10
11
// makeActionEntry builds a 175-byte Go cache action entry.
12
func makeActionEntry(actionHex, outputHex string, size, tsNano int64) []byte {
13
- return []byte(fmt.Sprintf("v1 %s %s %20d %20d\n", actionHex, outputHex, size, tsNano))
+ return fmt.Appendf(nil, "v1 %s %s %20d %20d\n", actionHex, outputHex, size, tsNano)
14
}
15
16
func Test_handleGet_Hit(t *testing.T) {
0 commit comments