summaryrefslogtreecommitdiff
path: root/service/test.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 21:37:39 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 21:37:39 +0000
commitba25f019012b632f6af9f5addee5058ba6a4e077 (patch)
treef9e5bc70a9fb075e43f11ca4a02493147e4b3d50 /service/test.cpp
parentAdd basic site setup (diff)
downloadmirrorsearch-ba25f019012b632f6af9f5addee5058ba6a4e077.tar.bz2
mirrorsearch-ba25f019012b632f6af9f5addee5058ba6a4e077.tar.xz
mirrorsearch-ba25f019012b632f6af9f5addee5058ba6a4e077.zip
Wrap support for making unique ptrs from functions
Diffstat (limited to 'service/test.cpp')
-rw-r--r--service/test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/service/test.cpp b/service/test.cpp
index c115712..8b93cf8 100644
--- a/service/test.cpp
+++ b/service/test.cpp
@@ -47,6 +47,11 @@ BOOST_AUTO_TEST_CASE(getServices)
BOOST_CHECK(!ss.front()->urlxpath.empty());
}
+BOOST_AUTO_TEST_CASE(getMatches_failure)
+{
+ BOOST_REQUIRE_THROW(s->getMatches("no.fixture"), MirrorSearch::XmlError);
+}
+
BOOST_AUTO_TEST_CASE(getMatches_zstd_notfound)
{
auto ms = s->getMatches("zstd-1.3.3.tar.gz");