Răsfoiți Sursa

test: linter changes

Michele Caini 1 an în urmă
părinte
comite
b879c722f4

+ 1 - 0
test/entt/container/table.cpp

@@ -508,6 +508,7 @@ TEST(Table, CustomAllocator) {
     ASSERT_NE(table.capacity(), 0u);
     ASSERT_EQ(table.size(), 2u);
 
+    other = {};
     table.swap(other);
     table = std::move(other);
     test::is_initialized(other);

+ 1 - 0
test/entt/entity/reactive_mixin.cpp

@@ -605,6 +605,7 @@ TYPED_TEST(ReactiveMixin, CustomAllocator) {
     ASSERT_NE(pool.capacity(), 0u);
     ASSERT_EQ(pool.size(), 2u);
 
+    other = {};
     pool.swap(other);
     pool = std::move(other);
     test::is_initialized(other);

+ 1 - 0
test/entt/entity/sigh_mixin.cpp

@@ -566,6 +566,7 @@ TYPED_TEST(SighMixin, CustomAllocator) {
     ASSERT_NE(pool.capacity(), 0u);
     ASSERT_EQ(pool.size(), 2u);
 
+    other = {};
     pool.swap(other);
     pool = std::move(other);
     test::is_initialized(other);

+ 1 - 0
test/entt/entity/sparse_set.cpp

@@ -2026,6 +2026,7 @@ TYPED_TEST(SparseSet, CustomAllocator) {
         ASSERT_EQ(set.capacity(), 2u);
         ASSERT_EQ(set.size(), 2u);
 
+        other = {};
         set.swap(other);
         set = std::move(other);
         test::is_initialized(other);

+ 1 - 0
test/entt/entity/storage.cpp

@@ -1761,6 +1761,7 @@ TYPED_TEST(Storage, CustomAllocator) {
     ASSERT_NE(pool.capacity(), 0u);
     ASSERT_EQ(pool.size(), 2u);
 
+    other = {};
     pool.swap(other);
     pool = std::move(other);
     test::is_initialized(other);