21 #ifndef mia_internal_pluginsettest_hh 22 #define mia_internal_pluginsettest_hh 26 #include <boost/test/unit_test.hpp> 28 template <
typename Hander>
31 auto data = handler.get_set();
32 BOOST_CHECK_EQUAL(data.size(), test.size());
33 for (
auto p = data.begin(); p != data.end(); ++p) {
34 BOOST_CHECK_MESSAGE(test.find(*p) != test.end(),
"unexpected plugin '" << *p <<
"' found");
37 for (
auto p = test.begin(); p != test.end(); ++p)
38 BOOST_CHECK_MESSAGE(data.find(*p) != data.end(),
"expected plugin '" << *p <<
"' not found");
void test_available_plugins(const Hander &handler, const std::set< std::string > &test)