mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
18 lines
275 B
Go
18 lines
275 B
Go
package lamport
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/go-git/go-billy/v5/memfs"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestPersistedClock(t *testing.T) {
|
|
root := memfs.New()
|
|
|
|
c, err := NewPersistedClock(root, "test-clock")
|
|
require.NoError(t, err)
|
|
|
|
testClock(t, c)
|
|
}
|