(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func testByteBufferGetPut(t *testing.T) { |
| 93 | for i := 0; i < 10; i++ { |
| 94 | expectedS := fmt.Sprintf("num %d", i) |
| 95 | b := Get() |
| 96 | b.B = append(b.B, "num "...) |
| 97 | b.B = append(b.B, fmt.Sprintf("%d", i)...) |
| 98 | if string(b.B) != expectedS { |
| 99 | t.Fatalf("unexpected result: %q. Expecting %q", b.B, expectedS) |
| 100 | } |
| 101 | Put(b) |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | func testByteBufferGetString(t *testing.T) { |
| 106 | for i := 0; i < 10; i++ { |
no test coverage detected
searching dependent graphs…