MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / TestNew

Function TestNew

lib/wal/wal_test.go:8–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestNew(t *testing.T) {
9 wal, err := New()
10 assert.Nil(t, err)
11 assert.NotNil(t, wal)
12 index, err := wal.log.LastIndex()
13 assert.Nil(t, err)
14 assert.Equal(t, uint64(1), index)
15}
16
17func TestWal_Write(t *testing.T) {
18 wal, err := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
LastIndexMethod · 0.45

Tested by

no test coverage detected