//WALWithNBlocks returns a WAL content with numBlocks.
WALWithNBlocks returns a WAL content with numBlocks.
// WALWithNBlocks returns a WAL content with numBlocks .
func WALWithNBlocks(t *testing.T, numBlocks int) (data []byte, err error) {
	var b bytes.Buffer
	wr := bufio.NewWriter(&b)
	if err := WALGenerateNBlocks(t, wr, numBlocks); err != nil {
		return []byte{}, err
	}
	wr.Flush()
	return b.Bytes(), nil
}
func WALWithNBlocks ( t * testing . T , numBlocks int ) ( data [ ] byte , err error ) { var b bytes . Buffer wr := bufio . NewWriter ( & b ) if err := WALGenerateNBlocks ( t , wr , numBlocks ) ; err != nil { return [ ] byte { } , err } wr . Flush ( ) return b . Bytes ( ) , nil }
WALWithNBlocks returns a WAL content with numBlocks.
WALWithNBlocks returns a WAL content with numBlocks .