()
| 39 | var o sync.Once |
| 40 | |
| 41 | func 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. |
| 53 | func CheckNum(num, expected int, t *testing.T) { |
nothing calls this directly
no test coverage detected