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

Function assertJSONHelpResultPaths

cmd/help_json_test.go:995–1005  ·  view source on GitHub ↗
(t *testing.T, got jsonHelpOutputForTest, want []string)

Source from the content-addressed store, hash-verified

993}
994
995func assertJSONHelpResultPaths(t *testing.T, got jsonHelpOutputForTest, want []string) {
996 t.Helper()
997
998 var paths []string
999 for _, result := range got.Results {
1000 paths = append(paths, result.Result.Path)
1001 }
1002 if !reflect.DeepEqual(paths, want) {
1003 t.Fatalf("result paths = %v, want %v", paths, want)
1004 }
1005}
1006
1007func jsonHelpManifestByPath(t *testing.T, got jsonHelpOutputForTest, path string) jsonCommandManifest {
1008 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected