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

Function testRmCmd

cmd/rm_test.go:15–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func testRmCmd(t *testing.T) (*cobra.Command, *bytes.Buffer) {
16 t.Helper()
17
18 var stdout bytes.Buffer
19 cmd := &cobra.Command{Use: "rm"}
20 cmd.SetOut(&stdout)
21 cmd.Flags().BoolP("force", "f", false, "")
22 cmd.Flags().BoolP("recursive", "r", false, "")
23 cmd.Flags().Bool("permanent", false, "")
24 cmd.Flags().BoolP("verbose", "v", false, "")
25 cmd.Flags().String(outputFlag, "text", "")
26 return cmd, &stdout
27}
28
29func setRmFlag(t *testing.T, cmd *cobra.Command, name string) {
30 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected