test: suppress warnings + increase code coverage
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user