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

Function assertJSONHelpArg

cmd/help_json_test.go:1052–1058  ·  view source on GitHub ↗
(t *testing.T, args []jsonCommandArg, name string, required bool, valueKind string, streamDash bool)

Source from the content-addressed store, hash-verified

1050}
1051
1052func assertJSONHelpArg(t *testing.T, args []jsonCommandArg, name string, required bool, valueKind string, streamDash bool) {
1053 t.Helper()
1054 arg := jsonHelpArgByName(t, args, name)
1055 if arg.Required != required || arg.ValueKind != valueKind || arg.StreamDash != streamDash {
1056 t.Fatalf("arg %s = %+v, want required=%t value_kind=%s stream_dash=%t", name, arg, required, valueKind, streamDash)
1057 }
1058}
1059
1060func jsonHelpArgByName(t *testing.T, args []jsonCommandArg, name string) jsonCommandArg {
1061 t.Helper()

Calls 1

jsonHelpArgByNameFunction · 0.85

Tested by

no test coverage detected