func makeSequence(start, n int) (seq []byte) { … } func TestWindow(t *testing.T) { … } // testWindow tests window by saving three sequences of bytes to it. // Third sequence tests read offset that can become non-zero only after second save. func testWindow(t *testing.T, size int, a, b, c []byte) { … }