1env GO111MODULE=on 2go mod init foo 3go test 4stdout ^ok\s+foo 5env GO111MODULE=off 6go test 7stdout ^ok\s+ 8! stdout ^ok\s+(cache)$ 9 10-- main_test.go -- 11package main 12 13import "testing" 14 15func TestF(t *testing.T) {}
View as plain text