test: suppress warnings + increase code coverage

This commit is contained in:
Michele Caini
2021-03-09 10:24:28 +01:00
parent 03c7dac92f
commit 4f93995bd7
2 changed files with 13 additions and 1 deletions

View File

@@ -442,8 +442,20 @@ TEST_F(MetaFunc, ExternalMemberFunction) {
}
TEST_F(MetaFunc, ReRegistration) {
int count = 0;
for([[maybe_unnused]] auto func: entt::resolve<func_t>().func()) {
++count;
}
MetaFunc::StaticSetUp();
for([[maybe_unnused]] auto func: entt::resolve<func_t>().func()) {
--count;
}
ASSERT_EQ(count, 0);
auto *node = entt::internal::meta_info<base_t>::resolve();
ASSERT_NE(node->func, nullptr);

View File

@@ -674,7 +674,7 @@ TEST_F(MetaType, ClassTemplate) {
TEST_F(MetaType, ReRegistration) {
int count = 0;
for(auto type: entt::resolve()) {
for([[maybe_unnused]] auto type: entt::resolve()) {
++count;
}