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

Function init

consistent/consistent_test.go:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39var o sync.Once
40
41func init() {
42 o.Do(func() {
43 kms.Unittest = true
44 utils.RemoveAll(testStorePath + "*")
45 x, _ := InitConsistent(testStorePath, new(KMSStorage), false)
46 if x == nil {
47 log.Fatal("InitConsistent failed")
48 }
49 })
50}
51
52// CheckNum make int assertion.
53func CheckNum(num, expected int, t *testing.T) {

Callers

nothing calls this directly

Calls 4

RemoveAllFunction · 0.92
FatalFunction · 0.92
InitConsistentFunction · 0.85
DoMethod · 0.80

Tested by

no test coverage detected