diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-06 21:37:39 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-06 21:37:39 +0000 |
commit | ba25f019012b632f6af9f5addee5058ba6a4e077 (patch) | |
tree | f9e5bc70a9fb075e43f11ca4a02493147e4b3d50 /service/test.cpp | |
parent | Add basic site setup (diff) | |
download | mirrorsearch-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.cpp | 5 |
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"); |