File tree 4 files changed +16
-19
lines changed
4 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -29,23 +29,20 @@ namespace mimicpp::reporting::detail::boost_test
29
29
};
30
30
31
31
[[noreturn]]
32
- inline void send_fail (const StringViewT msg)
32
+ inline void send_fail (StringViewT const msg)
33
33
{
34
34
BOOST_TEST_FAIL (msg);
35
35
unreachable ();
36
36
}
37
37
38
- inline void send_success (const StringViewT msg)
38
+ inline void send_success (StringViewT const msg)
39
39
{
40
40
BOOST_TEST_MESSAGE (msg);
41
41
}
42
42
43
- inline void send_warning (const StringViewT msg)
43
+ inline void send_warning (StringViewT const msg)
44
44
{
45
- BOOST_TEST_MESSAGE (
46
- format::format (
47
- " warning: {}" ,
48
- msg));
45
+ BOOST_TEST_MESSAGE (" warning: " ) << msg.data ();
49
46
}
50
47
}
51
48
@@ -72,7 +69,7 @@ namespace mimicpp::reporting
72
69
namespace mimicpp ::reporting::detail::boost_test
73
70
{
74
71
[[maybe_unused]]
75
- inline const ReporterInstaller<BoostTestReporterT> installer{};
72
+ inline ReporterInstaller<BoostTestReporterT> const installer{};
76
73
}
77
74
78
75
#endif
Original file line number Diff line number Diff line change 25
25
namespace mimicpp ::reporting::detail::catch2
26
26
{
27
27
[[noreturn]]
28
- inline void send_fail (const StringViewT msg)
28
+ inline void send_fail (StringViewT const msg)
29
29
{
30
30
#ifdef CATCH_CONFIG_PREFIX_ALL
31
31
CATCH_FAIL (msg);
@@ -36,7 +36,7 @@ namespace mimicpp::reporting::detail::catch2
36
36
unreachable ();
37
37
}
38
38
39
- inline void send_success (const StringViewT msg)
39
+ inline void send_success (StringViewT const msg)
40
40
{
41
41
#ifdef CATCH_CONFIG_PREFIX_ALL
42
42
CATCH_SUCCEED (msg);
@@ -45,7 +45,7 @@ namespace mimicpp::reporting::detail::catch2
45
45
#endif
46
46
}
47
47
48
- inline void send_warning (const StringViewT msg)
48
+ inline void send_warning (StringViewT const msg)
49
49
{
50
50
#ifdef CATCH_CONFIG_PREFIX_MESSAGES
51
51
CATCH_WARN (msg);
Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ namespace mimicpp::reporting::detail::doctest
27
27
using namespace ::doctest;
28
28
29
29
[[noreturn]]
30
- inline void send_fail (const StringViewT msg)
30
+ inline void send_fail (StringViewT const msg)
31
31
{
32
32
DOCTEST_FAIL (msg);
33
33
unreachable ();
34
34
}
35
35
36
- inline void send_success (const StringViewT msg)
36
+ inline void send_success (StringViewT const msg)
37
37
{
38
38
DOCTEST_REQUIRE_MESSAGE (true , msg);
39
39
}
40
40
41
- inline void send_warning (const StringViewT msg)
41
+ inline void send_warning (StringViewT const msg)
42
42
{
43
43
DOCTEST_MESSAGE (msg);
44
44
}
@@ -67,7 +67,7 @@ namespace mimicpp::reporting
67
67
namespace mimicpp ::reporting::detail::doctest
68
68
{
69
69
[[maybe_unused]]
70
- inline const ReporterInstaller<DoctestReporterT> installer{};
70
+ inline ReporterInstaller<DoctestReporterT> const installer{};
71
71
}
72
72
73
73
#endif
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ namespace mimicpp::reporting::detail::gtest
28
28
};
29
29
30
30
[[noreturn]]
31
- inline void send_fail (const StringViewT& msg)
31
+ inline void send_fail (StringViewT const msg)
32
32
{
33
33
// GTEST_FAIL has an immediate return
34
34
std::invoke (
@@ -39,12 +39,12 @@ namespace mimicpp::reporting::detail::gtest
39
39
throw failure{};
40
40
}
41
41
42
- inline void send_success (const StringViewT& msg)
42
+ inline void send_success (StringViewT const msg)
43
43
{
44
44
GTEST_SUCCEED () << msg;
45
45
}
46
46
47
- inline void send_warning ([[maybe_unused]] const StringViewT& msg)
47
+ inline void send_warning ([[maybe_unused]] StringViewT const msg)
48
48
{
49
49
// seems unsupported
50
50
}
@@ -73,7 +73,7 @@ namespace mimicpp::reporting
73
73
namespace mimicpp ::reporting::detail::gtest
74
74
{
75
75
[[maybe_unused]]
76
- inline const ReporterInstaller<GTestReporterT> installer{};
76
+ inline ReporterInstaller<GTestReporterT> const installer{};
77
77
}
78
78
79
79
#endif
You can’t perform that action at this time.
0 commit comments