test: code coverage

This commit is contained in:
skypjack
2025-07-30 10:35:11 +02:00
parent fa234af36b
commit 02440e17ae
+6
View File
@@ -386,6 +386,7 @@ TEST(Organizer, SyncPoint) {
TEST(Organizer, ConstRegistry) {
entt::organizer organizer;
entt::registry registry;
organizer.emplace<&clazz::const_registry_first>("first");
organizer.emplace<&clazz::const_registry_second>("second");
@@ -405,6 +406,11 @@ TEST(Organizer, ConstRegistry) {
ASSERT_EQ(graph[0u].out_edges().size(), 0u);
ASSERT_EQ(graph[1u].out_edges().size(), 0u);
for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
ASSERT_NO_THROW(cb(vertex.data(), registry));
}
}
TEST(Organizer, Override) {