Просмотр исходного кода

test: minor changes (code coverage)

Michele Caini 4 лет назад
Родитель
Сommit
1abbe9c7b2
2 измененных файлов с 2 добавлено и 8 удалено
  1. 0 4
      test/entt/common/throwing_allocator.hpp
  2. 2 4
      test/entt/signal/sigh.cpp

+ 0 - 4
test/entt/common/throwing_allocator.hpp

@@ -56,10 +56,6 @@ public:
         return true;
         return true;
     }
     }
 
 
-    bool operator!=(const throwing_allocator<Type> &) const {
-        return false;
-    }
-
     static inline bool trigger_on_allocate{};
     static inline bool trigger_on_allocate{};
     static inline bool trigger_after_allocate{};
     static inline bool trigger_after_allocate{};
 };
 };

+ 2 - 4
test/entt/signal/sigh.cpp

@@ -19,8 +19,6 @@ struct sigh_listener {
         return k;
         return k;
     }
     }
 
 
-    void i() {}
-
     // useless definition just because msvc does weird things if both are empty
     // useless definition just because msvc does weird things if both are empty
     void l() {
     void l() {
         k = true && k;
         k = true && k;
@@ -542,7 +540,7 @@ TEST_F(SigH, CustomAllocator) {
 
 
         entt::sink sink{curr};
         entt::sink sink{curr};
         sigh_listener listener;
         sigh_listener listener;
-        sink.template connect<&sigh_listener::i>(listener);
+        sink.template connect<&sigh_listener::g>(listener);
 
 
         decltype(curr) copy{curr, allocator};
         decltype(curr) copy{curr, allocator};
         sink.disconnect(listener);
         sink.disconnect(listener);
@@ -566,7 +564,7 @@ TEST_F(SigH, CustomAllocator) {
         ASSERT_TRUE(copy.empty());
         ASSERT_TRUE(copy.empty());
         ASSERT_TRUE(move.empty());
         ASSERT_TRUE(move.empty());
 
 
-        sink.template connect<&sigh_listener::i>(listener);
+        sink.template connect<&sigh_listener::g>(listener);
         copy.swap(move);
         copy.swap(move);
 
 
         ASSERT_FALSE(copy.empty());
         ASSERT_FALSE(copy.empty());