Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-04-07 13:35:57 +0200
committerMartin Hořeňovský2026-04-07 14:33:39 +0200
commit77eae8bd2a2c8c3135d30649aa7c51b5bfc0e61e (patch)
tree6500b4818d9203f795e825c9ee7d839f9e4ce7d9 /src/catch2/interfaces
parent3ab0d7cef3313d91e652a89870c89b0c42760f9e (diff)
downloadcatch3-77eae8bd2a2c8c3135d30649aa7c51b5bfc0e61e.tar.gz
Turn IResultCapture::lastAssertionPassed into a free function
The thread-safety changes in assertions & messages turned whether the last assertion passed or failed into thread-local state, instead of being member of the `RunContext`. However, this change was not reflected in the API `CHECKED_IF`/`CHECKED_ELSE` used, which in turn required `catch_test_macro_impl.hpp` to include `catch_interfaces_capture.hpp` for it. Thanks to the combination of this commit and the previous similar commit for the message stack handling, the main include path does not need to include `catch_interfaces_capture.hpp` anymore.
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_capture.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp
index b67437b1..4484e864 100644
--- a/src/catch2/interfaces/catch_interfaces_capture.hpp
+++ b/src/catch2/interfaces/catch_interfaces_capture.hpp
@@ -61,7 +61,6 @@ namespace Catch {
virtual void benchmarkEnded( BenchmarkStats<> const& stats ) = 0;
virtual void benchmarkFailed( StringRef error ) = 0;
-
virtual void handleFatalErrorCondition( StringRef message ) = 0;
virtual void handleExpr
@@ -87,9 +86,6 @@ namespace Catch {
ResultWas::OfType resultType,
AssertionReaction &reaction ) = 0;
-
- virtual bool lastAssertionPassed() = 0;
-
// Deprecated, do not use:
virtual std::string getCurrentTestName() const = 0;
virtual const AssertionResult* getLastResult() const = 0;