1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
goreleaser/internal/exec/exec_mock_test.go

16 lines
178 B
Go
Raw Normal View History

package exec
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
if v := os.Getenv(MockEnvVar); v != "" {
os.Exit(ExecuteMockData(v))
return
}
os.Exit(m.Run())
}