github.com/sunvim/utils@v0.1.0/lamport/persisted_clock_test.go (about)

     1  package lamport
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/go-git/go-billy/v5/memfs"
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestPersistedClock(t *testing.T) {
    11  	root := memfs.New()
    12  
    13  	c, err := NewPersistedClock(root, "test-clock")
    14  	require.NoError(t, err)
    15  
    16  	testClock(t, c)
    17  }