summaryrefslogtreecommitdiff
path: root/lib/tests/turnsmm/runtime_init.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-06-05 18:33:29 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-06-05 18:33:29 +0200
commitfe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4 (patch)
tree7cc8e64e94396582a27387236736871add983467 /lib/tests/turnsmm/runtime_init.cpp
parent14c2a945157d3e790506d97a5dc6f07b7e38ae26 (diff)
downloadturns-fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4.tar.xz
turns-fe40c3fc1f371d2da7918365c6dd6ec8a6c40dd4.zip
lib: rename test initializers
Diffstat (limited to 'lib/tests/turnsmm/runtime_init.cpp')
-rw-r--r--lib/tests/turnsmm/runtime_init.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/tests/turnsmm/runtime_init.cpp b/lib/tests/turnsmm/runtime_init.cpp
deleted file mode 100644
index ee529b9..0000000
--- a/lib/tests/turnsmm/runtime_init.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
- * SPDX-License-Identifier: LGPL-2.1-only
- */
-
-#include "turns-participant.h"
-#include "turns-turn-order.h"
-#include "turnsmm/init.hpp"
-#include "turnsmm/participant.hpp"
-#include "turnsmm/turn-order.hpp"
-
-#include <catch2/catch_test_macros.hpp>
-#include <catch2/internal/catch_test_run_info.hpp>
-#include <catch2/reporters/catch_reporter_event_listener.hpp>
-#include <catch2/reporters/catch_reporter_registrars.hpp>
-
-#include <glibmm/init.h>
-
-namespace turns::core::tests
-{
-
- struct glib_test_init : Catch::EventListenerBase
- {
- using Catch::EventListenerBase::EventListenerBase;
-
- auto testRunStarting(Catch::TestRunInfo const &) -> void override
- {
- Glib::init();
- Turns::init();
-
- CHECK(Turns::Participant::get_base_type() == turns_participant_get_type());
- CHECK(Glib::Value<Turns::Participant::Disposition>::value_type() == turns_participant_disposition_get_type());
-
- CHECK(Turns::TurnOrder::get_base_type() == turns_turn_order_get_type());
- CHECK(Glib::Value<Turns::TurnOrder::SortMode>::value_type() == turns_turn_order_sort_mode_get_type());
- }
- };
-
- CATCH_REGISTER_LISTENER(glib_test_init);
-
-} // namespace turns::core::tests \ No newline at end of file