# Basic test to ensure that the goproxytest instance used by various testscript | |
# tests works as expected. | |
go get example.com/blah | |
go mod tidy | |
cmp go.mod go.mod.golden | |
-- go.mod -- | |
module rubbish | |
go 1.14 | |
-- main.go -- | |
package main | |
import ( | |
"fmt" | |
"example.com/blah" | |
) | |
func main() { | |
fmt.Println(blah.Orange) | |
} | |
-- go.mod.golden -- | |
module rubbish | |
go 1.14 | |
require example.com/blah v1.0.0 |