(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func 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 | |
| 108 | func TestGetDstDefaultsToBasename(t *testing.T) { |
| 109 | tmpDir := t.TempDir() |