(t testing.TB, address string, opts ...Opt)
| 193 | } |
| 194 | |
| 195 | func newClient(t testing.TB, address string, opts ...Opt) (*Client, error) { |
| 196 | if testing.Short() { |
| 197 | t.Skip() |
| 198 | } |
| 199 | if rt := os.Getenv("TEST_RUNTIME"); rt != "" { |
| 200 | opts = append(opts, WithDefaultRuntime(rt)) |
| 201 | } |
| 202 | // testutil.RequiresRoot(t) is not needed here (already called in TestMain) |
| 203 | return New(address, opts...) |
| 204 | } |
| 205 | |
| 206 | func TestNewClient(t *testing.T) { |
| 207 | t.Parallel() |
no test coverage detected
searching dependent graphs…