github.phpd.cn/goreleaser/goreleaser@v0.92.0/internal/linux/arch_test.go (about) 1 package linux 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestArch(t *testing.T) { 11 for from, to := range map[string]string{ 12 "amd64": "amd64", 13 "386": "i386", 14 "arm64": "arm64", 15 "arm6": "armel", 16 "arm7": "armhf", 17 "what": "what", 18 } { 19 t.Run(fmt.Sprintf("%s to %s", from, to), func(t *testing.T) { 20 assert.Equal(t, to, Arch(from)) 21 }) 22 } 23 }