(t *testing.T)
| 594 | } |
| 595 | |
| 596 | func TestWithEnvProxy(t *testing.T) { |
| 597 | t.Parallel() |
| 598 | |
| 599 | opts := clientOptions{} |
| 600 | err := WithEnvProxy()(&opts) |
| 601 | if err != nil { |
| 602 | t.Fatalf("WithEnvProxy errored: %v", err) |
| 603 | } |
| 604 | |
| 605 | if !opts.envProxy { |
| 606 | t.Error("envProxy is false, want true") |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | func TestWithAuthToken(t *testing.T) { |
| 611 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…