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

Function jsonHelpFlagByName

cmd/help_json_test.go:1040–1050  ·  view source on GitHub ↗
(t *testing.T, flags []jsonCommandFlag, name string)

Source from the content-addressed store, hash-verified

1038}
1039
1040func jsonHelpFlagByName(t *testing.T, flags []jsonCommandFlag, name string) jsonCommandFlag {
1041 t.Helper()
1042
1043 for _, flag := range flags {
1044 if flag.Name == name {
1045 return flag
1046 }
1047 }
1048 t.Fatalf("flag %q not found", name)
1049 return jsonCommandFlag{}
1050}
1051
1052func assertJSONHelpArg(t *testing.T, args []jsonCommandArg, name string, required bool, valueKind string, streamDash bool) {
1053 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected