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

Function setup

naconn/conn_test.go:171–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169}
170
171func setup() {
172 rand.Seed(time.Now().UnixNano())
173
174 var err error
175 if tempDir, err = ioutil.TempDir("", "covenantsql"); err != nil {
176 panic(err)
177 }
178 if conf.GConf, err = conf.LoadConfig(confFile); err != nil {
179 panic(err)
180 }
181 if err = kms.InitLocalKeyPair(privateKey, []byte{}); err != nil {
182 panic(err)
183 }
184 route.InitKMS(filepath.Join(tempDir, "public.keystore"))
185}
186
187func teardown() {
188 if err := os.RemoveAll(tempDir); err != nil {

Callers 1

TestMainFunction · 0.70

Calls 3

LoadConfigFunction · 0.92
InitLocalKeyPairFunction · 0.92
InitKMSFunction · 0.92

Tested by

no test coverage detected