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

Function TestGetArgValidation

cmd/get_test.go:96–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

94}
95
96func TestGetArgValidation(t *testing.T) {
97 err := get(getCmd, []string{})
98 if err == nil {
99 t.Error("expected error for no args")
100 }
101
102 err = get(getCmd, []string{"a", "b", "c"})
103 if err == nil {
104 t.Error("expected error for too many args")
105 }
106}
107
108func TestGetDstDefaultsToBasename(t *testing.T) {
109 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected