vendor: update all dependencies to latest versions
This commit is contained in:
parent
8e83fb6fb9
commit
7d3a17725d
4878 changed files with 1974229 additions and 201215 deletions
5
vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go
generated
vendored
|
@ -329,7 +329,7 @@ func walkMap(m map[string]interface{}) string {
|
|||
str += fmt.Sprintf("%q:", k)
|
||||
switch v.(type) {
|
||||
case bool:
|
||||
str += fmt.Sprintf("%b,\n", v.(bool))
|
||||
str += fmt.Sprintf("%t,\n", v.(bool))
|
||||
case string:
|
||||
str += fmt.Sprintf("%q,\n", v.(string))
|
||||
case int:
|
||||
|
@ -459,7 +459,7 @@ func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string
|
|||
code += GenerateAssertions(v, s, prefix+"[\""+k+"\"]")
|
||||
}
|
||||
} else if shape.Type == "jsonvalue" {
|
||||
code += fmt.Sprintf("reflect.DeepEqual(%s, map[string]interface{}%s)", prefix, walkMap(out.(map[string]interface{})))
|
||||
code += fmt.Sprintf("reflect.DeepEqual(%s, map[string]interface{}%s)\n", prefix, walkMap(out.(map[string]interface{})))
|
||||
} else {
|
||||
for _, k := range keys {
|
||||
v := t[k]
|
||||
|
@ -517,6 +517,7 @@ func getType(t string) uint {
|
|||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println("Generating test suite", os.Args[1:])
|
||||
out := generateTestSuite(os.Args[1])
|
||||
if len(os.Args) == 3 {
|
||||
f, err := os.Create(os.Args[2])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue