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

Function TestMain

cmd/cql-fuse/block_test.go:67–79  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

65var FJ = filepath.Join
66
67func TestMain(m *testing.M) {
68 os.Exit(func() int {
69 var stop func()
70 db, stop = initTestDB()
71 if db == nil {
72 stop()
73 log.Fatalf("init test DB failed")
74 }
75 defer stop()
76 defer db.Close()
77 return m.Run()
78 }())
79}
80
81func startNodes() {
82 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

FatalfFunction · 0.92
initTestDBFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected