6#ifndef MIMICPP_ADAPTERS_GTEST_HPP
7#define MIMICPP_ADAPTERS_GTEST_HPP
11#if __has_include("mimic++/Reporting.hpp")
13#elif not defined(MIMICPP_VERSION)
14 #error "It appears that the test-adapter is not included in the mimic++ project or package." \
15 "If you plan to use it alongside the mimic++-amalgamated header, please ensure to include the adapter-header afterwards."
18#if __has_include(<gtest/gtest.h>)
19 #include <gtest/gtest.h>
21 #error "Unable to find gtest includes."
24namespace mimicpp::reporting::detail::gtest
44 GTEST_SUCCEED() << msg;
47 inline void send_warning([[maybe_unused]]
StringViewT const msg)
66 &detail::gtest::send_success,
67 &detail::gtest::send_warning,
68 &detail::gtest::send_fail>;
73namespace mimicpp::reporting::detail::gtest
76 inline ReporterInstaller<GTestReporterT>
const installer{};
A reporter, which creates text messages and reports them via the provided callbacks.
Definition BasicReporter.hpp:40
BasicReporter< &detail::gtest::send_success, &detail::gtest::send_warning, &detail::gtest::send_fail > GTestReporterT
Reporter for the integration into gtest.
Definition gtest.hpp:65
Definition BasicReporter.hpp:27
std::basic_string_view< CharT, CharTraitsT > StringViewT
Definition Fwd.hpp:392