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

Function testGetJSONCmd

cmd/get_test.go:35–48  ·  view source on GitHub ↗
(stdout, stderr *bytes.Buffer)

Source from the content-addressed store, hash-verified

33func (r *failingReadCloser) Close() error { return nil }
34
35func testGetJSONCmd(stdout, stderr *bytes.Buffer) *cobra.Command {
36 cmd := testGetCmd()
37 cmd.Flags().String(outputFlag, "text", "")
38 if err := cmd.Flags().Set(outputFlag, "json"); err != nil {
39 panic(err)
40 }
41 if stdout != nil {
42 cmd.SetOut(stdout)
43 }
44 if stderr != nil {
45 cmd.SetErr(stderr)
46 }
47 return cmd
48}
49
50type getOutputData struct {
51 Input getCommandInput `json:"input"`

Calls 1

testGetCmdFunction · 0.85

Tested by

no test coverage detected