github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/internal/exec/exec_mock_test.go (about) 1 package exec 2 3 import ( 4 "os" 5 "testing" 6 ) 7 8 func TestMain(m *testing.M) { 9 if v := os.Getenv(MockEnvVar); v != "" { 10 os.Exit(ExecuteMockData(v)) 11 return 12 } 13 14 os.Exit(m.Run()) 15 }