github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/resource-args-python/go-extras/tests/go_test.go (about) 1 package tests 2 3 import ( 4 "reflect" 5 "testing" 6 7 "resource-args-python/example" 8 9 "github.com/stretchr/testify/assert" 10 ) 11 12 func TestArrayElemType(t *testing.T) { 13 var arr example.PersonArray 14 assert.Equal(t, reflect.TypeOf([]*example.Person(nil)), arr.ElementType()) 15 } 16 17 func TestMapElemType(t *testing.T) { 18 var m example.PersonMap 19 assert.Equal(t, reflect.TypeOf(map[string]*example.Person(nil)), m.ElementType()) 20 }