"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Commit missing tests
Nick Craig-Wood9c263e3e2b6b
diff --git a/swift/swift_internal_test.go b/swift/swift_internal_test.gonew file mode 100644index 000000000..de95a4c67--- /dev/null+++ b/swift/swift_internal_test.go@@ -0,0 +1,25 @@+package swift++import "testing"++func TestInternalUrlEncode(t *testing.T) {+ for _, test := range []struct {+ in string+ want string+ }{+ {"", ""},+ {"abcdefghijklmopqrstuvwxyz", "abcdefghijklmopqrstuvwxyz"},+ {"ABCDEFGHIJKLMOPQRSTUVWXYZ", "ABCDEFGHIJKLMOPQRSTUVWXYZ"},+ {"0123456789", "0123456789"},+ {"abc/ABC/123", "abc/ABC/123"},+ {" ", "%20%20%20"},+ {"&", "%26"},+ {"ߣ", "%C3%9F%C2%A3"},+ {"Vidéo Potato Sausage?&£.mkv", "Vid%C3%A9o%20Potato%20Sausage%3F%26%C2%A3.mkv"},+ } {+ got := urlEncode(test.in)+ if got != test.want {+ t.Logf("%q: want %q got %q", test.in, test.want, got)+ }+ }+}