|
@@ -12,6 +12,7 @@
|
|
|
#include <entt/entity/registry.hpp>
|
|
#include <entt/entity/registry.hpp>
|
|
|
#include <entt/entity/snapshot.hpp>
|
|
#include <entt/entity/snapshot.hpp>
|
|
|
#include <entt/signal/sigh.hpp>
|
|
#include <entt/signal/sigh.hpp>
|
|
|
|
|
+#include "../common/config.h"
|
|
|
|
|
|
|
|
struct empty {};
|
|
struct empty {};
|
|
|
|
|
|
|
@@ -231,6 +232,13 @@ TEST(BasicSnapshotLoader, Constructors) {
|
|
|
ASSERT_NO_FATAL_FAILURE(loader = std::move(other));
|
|
ASSERT_NO_FATAL_FAILURE(loader = std::move(other));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ENTT_DEBUG_TEST(BasicSnapshotLoaderDeathTest, Constructors) {
|
|
|
|
|
+ entt::registry registry;
|
|
|
|
|
+ registry.emplace<int>(registry.create());
|
|
|
|
|
+
|
|
|
|
|
+ ASSERT_DEATH([[maybe_unused]] entt::basic_snapshot_loader loader{registry}, "");
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
TEST(BasicSnapshotLoader, GetEntityType) {
|
|
TEST(BasicSnapshotLoader, GetEntityType) {
|
|
|
using namespace entt::literals;
|
|
using namespace entt::literals;
|
|
|
using traits_type = entt::entt_traits<entt::entity>;
|
|
using traits_type = entt::entt_traits<entt::entity>;
|