go/src/cmd/go/proxy_test.go

var proxyAddr

var proxyURL

var proxyOnce

// StartProxy starts the Go module proxy running on *proxyAddr (like "localhost:1234")
// and sets proxyURL to the GOPROXY setting to use to access the proxy.
// Subsequent calls are no-ops.
//
// The proxy serves from testdata/mod. See testdata/mod/README.
func StartProxy() {}

var modList

func readModList() {}

var zipCache

const testSumDBName

const testSumDBVerifierKey

const testSumDBSignerKey

var sumdbOps

var sumdbServer

var sumdbWrongOps

var sumdbWrongServer

// proxyHandler serves the Go module proxy protocol.
// See the proxy section of https://research.swtch.com/vgo-module.
func proxyHandler(w http.ResponseWriter, r *http.Request) {}

func findHash(m module.Version) string {}

var archiveCache

var (
	cmdGoDir
	_
)

func readArchive(path, vers string) (*txtar.Archive, error) {}

// proxyGoSum returns the two go.sum lines for path@vers.
func proxyGoSum(path, vers string) ([]byte, error) {}

// proxyGoSumWrong returns the wrong lines.
func proxyGoSumWrong(path, vers string) ([]byte, error) {}