MCPcopy Create free account
hub / github.com/tebeka/selenium / TestMain

Function TestMain

remote_test.go:52–63  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

50)
51
52func 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
65func findBestPath(glob string, binary bool) string {
66 matches, err := filepath.Glob(glob)

Callers

nothing calls this directly

Calls 3

setDriverPathsFunction · 0.85
ErrorMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…