(m *testing.M)
| 65 | var FJ = filepath.Join |
| 66 | |
| 67 | func 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 | |
| 81 | func startNodes() { |
| 82 | ctx := context.Background() |
nothing calls this directly
no test coverage detected