(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestRunCopyToContainerSourceDoesNotExist(t *testing.T) { |
| 140 | cli := test.NewFakeCli(&fakeClient{}) |
| 141 | err := runCopy(context.TODO(), cli, copyOptions{ |
| 142 | source: "/does/not/exist", |
| 143 | destination: "container:/path", |
| 144 | }) |
| 145 | expected := "no such file or directory" |
| 146 | if runtime.GOOS == "windows" { |
| 147 | expected = "cannot find the file specified" |
| 148 | } |
| 149 | assert.ErrorContains(t, err, expected) |
| 150 | } |
| 151 | |
| 152 | func TestSplitCpArg(t *testing.T) { |
| 153 | testcases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…