Update Catch2 to v3

This commit is contained in:
Luca Matei Pintilie
2025-10-12 17:45:58 +02:00
committed by mathieui
parent c7a0ce553f
commit 5cb2802fd2
19 changed files with 23 additions and 50 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <bridge/colors.hpp>
#include <xmpp/xmpp_stanza.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include "io_tester.hpp"
#include <iostream>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <biboumi.h>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <utils/encoding.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <irc/iid.hpp>
#include <irc/irc_user.hpp>
+1 -1
View File
@@ -1,5 +1,5 @@
#include "io_tester.hpp"
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <iostream>
/**
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <irc/irc_message.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <xmpp/jid.hpp>
#include <biboumi.h>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <logger/logger.hpp>
#include <config/config.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <network/tls_policy.hpp>
#include <sstream>
-2
View File
@@ -1,2 +0,0 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
+1 -15
View File
@@ -1,21 +1,7 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <utils/timed_events.hpp>
/**
* Let Catch know how to display std::chrono::duration values
*/
namespace Catch
{
template<typename Rep, typename Period> struct StringMaker<std::chrono::duration<Rep, Period>>
{
static std::string convert(const std::chrono::duration<Rep, Period>& value)
{
return std::to_string(std::chrono::duration_cast<std::chrono::milliseconds>(value).count()) + "ms";
}
};
}
/**
* TODO, use a mock clock instead of relying on the real time with a sleep:
* it’s unreliable on heavy load.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <utils/tolower.hpp>
#include <utils/revstr.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <xmpp/xmpp_component.hpp>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include <xmpp/xmpp_parser.hpp>
#include <xmpp/auth.hpp>