1#ifndef UTOPIA_CORE_TESTTOOLS_EXCEPTIONS_HH
2#define UTOPIA_CORE_TESTTOOLS_EXCEPTIONS_HH
9#include <boost/test/unit_test.hpp>
10#include <boost/core/demangle.hpp>
12#include "../exceptions.hh"
41template<
typename ExcT,
typename Callable=std::function<
void()>>
43 const std::string_view
match =
"",
47 static_assert(std::is_invocable_v<Callable>,
48 "Callable needs to be invocable without any arguments!");
53 if constexpr (std::is_same<ExcT, std::exception>()) {
61 " Expected match : " <<
match <<
"\n"
62 " But got : " <<
e.what() <<
"\n");
81 " Expected match : " <<
match <<
"\n"
82 " But got : " <<
e.what() <<
"\n");
86 catch (std::exception&
e) {
88 << boost::core::demangle(
typeid(
e).name())
89 <<
") with message: " <<
e.what());
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213