test: code coverage
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user