aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repository-location')
-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 bb55cf9..dc1ecb7 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -645,6 +645,14 @@ namespace bpkg
assert (l2.canonical_name () == "git:example.com/test#master");
assert (l2.proto () == proto::https);
}
+
+ {
+ repository_location l (loc ("http:repo/1/path", loc ()));
+ assert (l.string () == "http:repo/1/path");
+ assert (l.canonical_name ().empty ());
+ assert (l.proto () == proto::file);
+ }
+
#ifndef _WIN32
{
repository_location l1 (loc ("/var/r1/1/misc"));