(t *testing.T)
| 103 | } |
| 104 | |
| 105 | func testByteBufferGetString(t *testing.T) { |
| 106 | for i := 0; i < 10; i++ { |
| 107 | expectedS := fmt.Sprintf("num %d", i) |
| 108 | b := Get() |
| 109 | b.SetString(expectedS) |
| 110 | if b.String() != expectedS { |
| 111 | t.Fatalf("unexpected result: %q. Expecting %q", b.B, expectedS) |
| 112 | } |
| 113 | Put(b) |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | func TestByteBufferGetStringSerial(t *testing.T) { |
| 118 | testByteBufferGetString(t) |
no test coverage detected
searching dependent graphs…