(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestPutStdin_RequiresTarget(t *testing.T) { |
| 33 | cmd := testPutCmdWithStdin(strings.NewReader("data")) |
| 34 | err := put(cmd, []string{"-"}) |
| 35 | if err == nil { |
| 36 | t.Fatal("expected error for put - without target") |
| 37 | } |
| 38 | if !strings.Contains(err.Error(), "explicit target") { |
| 39 | t.Errorf("error = %q, want mention of explicit target", err.Error()) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestPutStdin_RejectsRecursive(t *testing.T) { |
| 44 | cmd := testPutCmdWithStdin(strings.NewReader("data")) |
nothing calls this directly
no test coverage detected