(t *testing.T, schema jsonCommandInputSchema, name string, propertyType string, cliKind string, cliName string, valueKind string)
| 1069 | } |
| 1070 | |
| 1071 | func assertJSONHelpInputProperty(t *testing.T, schema jsonCommandInputSchema, name string, propertyType string, cliKind string, cliName string, valueKind string) jsonCommandInputProperty { |
| 1072 | t.Helper() |
| 1073 | property, ok := schema.Properties[name] |
| 1074 | if !ok { |
| 1075 | t.Fatalf("input_schema property %q not found in %+v", name, schema.Properties) |
| 1076 | } |
| 1077 | if property.Type != propertyType || property.XCLIKind != cliKind || property.XCLIName != cliName || property.XValueKind != valueKind { |
| 1078 | t.Fatalf("input_schema property %s = %+v, want type=%s x-cli-kind=%s x-cli-name=%s x-value-kind=%s", name, property, propertyType, cliKind, cliName, valueKind) |
| 1079 | } |
| 1080 | return property |
| 1081 | } |
| 1082 | |
| 1083 | func sortStrings(values []string) { |
| 1084 | sort.Strings(values) |
no outgoing calls
no test coverage detected