github.com/dnephin/dobi@v0.15.0/config/types_test.go (about) 1 package config 2 3 import ( 4 "reflect" 5 "testing" 6 7 "gotest.tools/v3/assert" 8 ) 9 10 func TestPathGlobsTransformConfigFromSlice(t *testing.T) { 11 globs := PathGlobs{} 12 13 value := []interface{}{"one", "two", "three"} 14 err := globs.TransformConfig(reflect.ValueOf(value)) 15 assert.NilError(t, err) 16 assert.DeepEqual(t, []string{"one", "two", "three"}, globs.globs) 17 }