# Verify that goproxytest.Setup chains with an existing Setup function. # The custom setup sets CUSTOM=hello, and then Setup should also set GOPROXY. go env GOPROXY stdout ^http://.*/mod$ go run main.go stdout ^hello$ -- go.mod -- module mod -- main.go -- package main import ( "fmt" "os" ) func main() { fmt.Println(os.Getenv("CUSTOM")) } -- .gomodproxy/fruit.com_v1.0.0/go.mod -- module fruit.com -- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go -- package fruit const Name = "Apple"