aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r--tests/repository-location/driver.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index dc1ecb7..c2153ff 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -480,6 +480,14 @@ namespace bpkg
assert (l.type () == repository_type::git);
}
{
+ repository_location l (loc ("ssh://example.com/test.git#master",
+ repository_type::git));
+ assert (l.string () == "ssh://example.com/test.git#master");
+ assert (l.canonical_name () == "git:example.com/test#master");
+ assert (l.proto () == proto::ssh);
+ assert (l.type () == repository_type::git);
+ }
+ {
repository_location l (loc ("http://example.com/test.git#master",
repository_type::git));
assert (l.string () == "http://example.com/test.git#master");