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

Function TestSearchArgValidation

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

Source from the content-addressed store, hash-verified

13)
14
15func TestSearchArgValidation(t *testing.T) {
16 err := search(searchCmd, []string{})
17 if err == nil {
18 t.Error("expected error for no args")
19 }
20}
21
22func TestSearchPathScopeValidation(t *testing.T) {
23 err := search(searchCmd, []string{"query", "no-slash"})

Callers

nothing calls this directly

Calls 2

searchFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected