We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 492e53e commit 4df9fedCopy full SHA for 4df9fed
cmd/s3backup/main_test.go
@@ -7,9 +7,18 @@ import (
7
)
8
9
func TestCheckPaths(t *testing.T) {
10
+ localPath = "s3://foo/bar.txt"
11
+ remotePath = "s3://foo/bar.txt"
12
+ assert.Error(t, checkPaths(), "cannot have two remote paths")
13
+
14
+ localPath = "bar.txt"
15
+ remotePath = "bar.txt"
16
+ assert.Error(t, checkPaths(), "cannot have two local paths")
17
18
localPath = "bar.txt"
19
remotePath = "s3://foo/bar.txt"
20
assert.NilError(t, checkPaths())
21
22
localPath = "s3://foo/bar.txt"
23
remotePath = "bar.txt"
24
0 commit comments