mustNewClient is a helper function that creates a new Client and fails the test if there is an error.
(t *testing.T, opts ...ClientOptionsFunc)
| 47 | |
| 48 | // mustNewClient is a helper function that creates a new Client and fails the test if there is an error. |
| 49 | func mustNewClient(t *testing.T, opts ...ClientOptionsFunc) *Client { |
| 50 | t.Helper() |
| 51 | c, err := NewClient(opts...) |
| 52 | if err != nil { |
| 53 | t.Fatal(err) |
| 54 | } |
| 55 | return c |
| 56 | } |
| 57 | |
| 58 | // mustParseURL is a helper function that parses a URL and fails the test if there is an error. |
| 59 | func mustParseURL(t *testing.T, rawurl string) *url.URL { |
no test coverage detected
searching dependent graphs…