Finished store

This commit is contained in:
Mariano Uvalle 2021-07-30 20:12:18 -05:00
parent a09c98c243
commit 6762591ea2
4 changed files with 148 additions and 0 deletions

View file

@ -0,0 +1,20 @@
package log
import (
"testing"
"github.com/stretchr/testify/require"
)
var (
write = []byte("hello world")
width = uint64(len(write) + lenWidth)
)
func testAppend(t *testing.T, s *store) {
t.Helper()
for i := uint64(1); i < 4; i++ {
n, pos, err := s.Append(write)
require.NoError(t, err)
}
}