MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestNew

Function TestNew

consistent/consistent_test.go:69–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

67}
68
69func TestNew(t *testing.T) {
70 kms.Unittest = true
71 utils.RemoveAll(testStorePath + "*")
72
73 x, _ := InitConsistent(testStorePath, new(KMSStorage), false)
74 defer utils.RemoveAll(testStorePath + "*")
75 if x == nil {
76 t.Error("expected obj")
77 }
78}
79
80func TestAdd(t *testing.T) {
81 kms.Unittest = true

Callers

nothing calls this directly

Calls 3

RemoveAllFunction · 0.92
InitConsistentFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected