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