summaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
index e88c5b7..48ba1e9 100644
--- a/main_test.go
+++ b/main_test.go
@@ -19,6 +19,7 @@ func TestSyncRejection(t *testing.T) {
expect string
}{
{"invalid source", "https||:example.org/somewhere", "my.site/part/target", errSrcInvalid},
+ {"empty source", "http://", "https://my.site/part/target", errSrcInvalid},
{"target no accepted", "https://example.org/somewhere", "wrong.site/tgt", errTgtNotAccepted},
{"wrong source scheme", "ftp://example.org/somewhere", "http://my.site/part/tgt", errInvalidScheme},
{"wrong target scheme", "http://example.org/somewhere", "ssh://my.site/part/tgt", errInvalidScheme},