(m *testing.M)
| 50 | ) |
| 51 | |
| 52 | func TestMain(m *testing.M) { |
| 53 | flag.Parse() |
| 54 | if err := setDriverPaths(); err != nil { |
| 55 | fmt.Fprint(os.Stderr, fmt.Sprintf("Exiting early: unable to get the driver paths -- %s", err.Error())) |
| 56 | os.Exit(1) |
| 57 | } |
| 58 | |
| 59 | s := httptest.NewServer(http.HandlerFunc(handler)) |
| 60 | serverURL = s.URL |
| 61 | defer s.Close() |
| 62 | os.Exit(m.Run()) |
| 63 | } |
| 64 | |
| 65 | func findBestPath(glob string, binary bool) string { |
| 66 | matches, err := filepath.Glob(glob) |
nothing calls this directly
no test coverage detected
searching dependent graphs…