summaryrefslogtreecommitdiff
path: root/service/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/test.cpp')
-rw-r--r--service/test.cpp12
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)