(b *testing.B)
| 40 | } |
| 41 | |
| 42 | func BenchmarkWriteVarBytes(b *testing.B) { |
| 43 | s := []byte{10, 11, 12} |
| 44 | buf := new(bytes.Buffer) |
| 45 | for i := 0; i < b.N; i++ { |
| 46 | WriteVarBytes(buf, s) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func BenchmarkWriteVarString(b *testing.B) { |
| 51 | s := "jim" |
nothing calls this directly
no test coverage detected