MCPcopy Index your code
hub / github.com/google/go-github / TestWithEnvProxy

Function TestWithEnvProxy

github/github_test.go:596–608  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

594}
595
596func 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
610func TestWithAuthToken(t *testing.T) {
611 t.Parallel()

Callers

nothing calls this directly

Calls 2

WithEnvProxyFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…