get.porter.sh/porter@v1.3.0/pkg/mixin/install_test.go (about) 1 package mixin 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 "github.com/stretchr/testify/require" 8 ) 9 10 func TestInstallOptions_Validate(t *testing.T) { 11 // InstallOptions is already tested in pkgmgmt, we just want to make sure DefaultFeedURL is set 12 opts := InstallOptions{} 13 err := opts.Validate([]string{"pkg1"}) 14 require.NoError(t, err, "Validate failed") 15 assert.NotEmpty(t, opts.FeedURL, "Feed URL was not defaulted") 16 }