21 #ifndef mia_core_test_helpers_hh 22 #define mia_core_test_helpers_hh 24 #ifndef mia_internal_autotest_hh 39 template <
class PluginHandler>
42 auto plugins = PluginHandler::instance().get_set();
43 BOOST_CHECK_EQUAL(plugins.size(), expected.size());
45 for (
auto p = plugins.begin(); p != plugins.end(); ++p) {
46 BOOST_CHECK_MESSAGE(expected.find(*p) != expected.end(),
"unexpected plugin '" << *p <<
"' found");
49 for (
auto p = expected.begin(); p != expected.end(); ++p)
50 BOOST_CHECK_MESSAGE(plugins.find(*p) != plugins.end(),
"expected plugin '" << *p <<
"' not found");
void test_plugin_names_and_count(const std::set< std::string > &expected)