test: minor changes (code coverage)

This commit is contained in:
Michele Caini
2021-12-04 15:21:49 +01:00
parent 7205ac791c
commit 1abbe9c7b2
2 changed files with 2 additions and 8 deletions

View File

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

View File

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