6#ifndef MIMICPP_ADAPTERS_BOOST_TEST_HPP
7#define MIMICPP_ADAPTERS_BOOST_TEST_HPP
11#if __has_include("mimic++/Reporting.hpp")
14#elif not defined(MIMICPP_VERSION)
15 #error "It appears that the test-adapter is not included in the mimic++ project or package." \
16 "If you plan to use it alongside the mimic++-amalgamated header, please ensure to include the adapter-header afterwards."
19#if __has_include(<boost/test/unit_test.hpp>)
20 #include <boost/test/unit_test.hpp>
22 #error "Unable to find Boost.Test includes."
25namespace mimicpp::reporting::detail::boost_test
40 BOOST_TEST_MESSAGE(msg);
45 BOOST_TEST_MESSAGE(
"warning: ") << msg.data();
62 &detail::boost_test::send_success,
63 &detail::boost_test::send_warning,
64 &detail::boost_test::send_fail>;
69namespace mimicpp::reporting::detail::boost_test
72 inline ReporterInstaller<BoostTestReporterT>
const installer{};
A reporter, which creates text messages and reports them via the provided callbacks.
Definition BasicReporter.hpp:40
BasicReporter< &detail::boost_test::send_success, &detail::boost_test::send_warning, &detail::boost_test::send_fail > BoostTestReporterT
Reporter for the integration into Boost.Test.
Definition BoostTest.hpp:61
Definition BasicReporter.hpp:27
void unreachable()
Invokes undefined behavior.
Definition C++23Backports.hpp:40
std::basic_string_view< CharT, CharTraitsT > StringViewT
Definition Fwd.hpp:392