1// +build 1.6,codegen 2 3package api_test 4 5import ( 6 "testing" 7 8 "github.com/aws/aws-sdk-go/private/model/api" 9) 10 11func TestShapeTagJoin(t *testing.T) { 12 s := api.ShapeTags{ 13 {Key: "location", Val: "query"}, 14 {Key: "locationName", Val: "abc"}, 15 {Key: "type", Val: "string"}, 16 } 17 18 expected := `location:"query" locationName:"abc" type:"string"` 19 20 o := s.Join(" ") 21 o2 := s.String() 22 if expected != o { 23 t.Errorf("Expected %s, but received %s", expected, o) 24 } 25 if expected != o2 { 26 t.Errorf("Expected %s, but received %s", expected, o2) 27 } 28} 29