MCPcopy Create free account
hub / github.com/dropbox/dbxcli / assertJSONHelpInputProperty

Function assertJSONHelpInputProperty

cmd/help_json_test.go:1071–1081  ·  view source on GitHub ↗
(t *testing.T, schema jsonCommandInputSchema, name string, propertyType string, cliKind string, cliName string, valueKind string)

Source from the content-addressed store, hash-verified

1069}
1070
1071func 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
1083func sortStrings(values []string) {
1084 sort.Strings(values)

Calls

no outgoing calls

Tested by

no test coverage detected