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

Function assertJSONHelpFlagNames

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

Source from the content-addressed store, hash-verified

1017}
1018
1019func assertJSONHelpFlagNames(t *testing.T, flags []jsonCommandFlag, want []string) {
1020 t.Helper()
1021
1022 var got []string
1023 for _, flag := range flags {
1024 got = append(got, flag.Name)
1025 }
1026 if !reflect.DeepEqual(got, want) {
1027 t.Fatalf("flag names = %v, want %v", got, want)
1028 }
1029}
1030
1031func jsonHelpHasFlag(flags []jsonCommandFlag, name string) bool {
1032 for _, flag := range flags {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected