diff options
Diffstat (limited to 'service/test.cpp')
-rw-r--r-- | service/test.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/service/test.cpp b/service/test.cpp index 979d43d..5be34e7 100644 --- a/service/test.cpp +++ b/service/test.cpp @@ -50,7 +50,17 @@ BOOST_AUTO_TEST_CASE(getServices) BOOST_AUTO_TEST_CASE(getMatches_failure) { - BOOST_REQUIRE_THROW(s->getMatches("no.fixture"), MirrorSearch::XmlError); + BOOST_REQUIRE_THROW(s->getMatches("no.fixture"), MirrorSearch::CurlError); +} + +BOOST_AUTO_TEST_CASE(getMatches_empty_response) +{ + BOOST_REQUIRE_THROW(s->getMatches("empty"), MirrorSearch::CurlError); +} + +BOOST_AUTO_TEST_CASE(getMatches_not_html) +{ + BOOST_REQUIRE_THROW(s->getMatches("not"), MirrorSearch::XmlError); } BOOST_AUTO_TEST_CASE(getMatches_zstd_notfound) |