6#ifndef MIMICPP_ADAPTERS_DOCTEST_HPP
7#define MIMICPP_ADAPTERS_DOCTEST_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(<doctest/doctest.h>)
20 #include <doctest/doctest.h>
22 #error "Unable to find Doctest includes."
25namespace mimicpp::reporting::detail::doctest
27 using namespace ::doctest;
38 DOCTEST_REQUIRE_MESSAGE(
true, msg);
60 &detail::doctest::send_success,
61 &detail::doctest::send_warning,
62 &detail::doctest::send_fail>;
67namespace mimicpp::reporting::detail::doctest
70 inline ReporterInstaller<DoctestReporterT>
const installer{};
A reporter, which creates text messages and reports them via the provided callbacks.
Definition BasicReporter.hpp:40
BasicReporter< &detail::doctest::send_success, &detail::doctest::send_warning, &detail::doctest::send_fail > DoctestReporterT
Reporter for the integration into Doctest.
Definition Doctest.hpp:59
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