(t *testing.T)
| 850 | } |
| 851 | |
| 852 | func TestPartitionAt(t *testing.T) { |
| 853 | buf := NewPartitionAt(NewMemPoolAt(5)) |
| 854 | buf.Write([]byte("Hello World")) |
| 855 | data := make([]byte, 12) |
| 856 | n, _ := buf.Read(data) |
| 857 | if !bytes.Equal(data[:n], []byte("Hello World")) { |
| 858 | t.Error("Read Failed. " + string(data[:n])) |
| 859 | } |
| 860 | |
| 861 | checkCap(t, buf, math.MaxInt64) |
| 862 | runPerfectSeries(t, buf) |
| 863 | } |
| 864 | |
| 865 | // TestPartitionAt2 tests ability to read at various offsets from buffer previously written. |
| 866 | func TestPartitionAt2(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…