(m *testing.M)
| 37 | ) |
| 38 | |
| 39 | func TestMain(m *testing.M) { |
| 40 | log.SuppressOutput(true) |
| 41 | retCode := m.Run() |
| 42 | log.SuppressOutput(false) |
| 43 | if err := os.RemoveAll(testDir); err != nil { |
| 44 | log.Fatalf("cannot remove %q: %s", testDir, err) |
| 45 | } |
| 46 | if redisClient != nil { |
| 47 | redisClient.Close() |
| 48 | } |
| 49 | os.Exit(retCode) |
| 50 | } |
| 51 | |
| 52 | var redisClient *miniredis.Miniredis |
| 53 |
nothing calls this directly
no test coverage detected