push
github
5 of 6 new or added lines in 1 file covered. (83.33%)
5463 existing lines in 165 files now uncovered.299151 of 415222 relevant lines covered (72.05%)
702386.45 hits per line
| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
| 2 |
|
|
| 3 |
#include "memory-util.h" |
|
| 4 |
#include "static-destruct.h" |
|
| 5 |
|
|
| 6 |
void static_destruct_impl(const StaticDestructor *start, const StaticDestructor *end) { |
73,576✔ |
| 7 |
if (!start)
|
73,576✔ |
| 8 |
return;
|
|
| 9 |
|
|
| 10 |
for (const StaticDestructor *d = ALIGN_PTR(start); d < end; d = ALIGN_PTR(d + 1)) |
1,374,734✔ |
| 11 |
switch (d->type) {
|
1,315,140✔ |
| 12 |
case STATIC_DESTRUCTOR_SIMPLE:
|
1,315,091✔ |
| 13 |
d->simple.destroy(d->simple.data); |
1,315,091✔ |
| 14 |
break;
|
1,315,091✔ |
| 15 |
|
|
| 16 |
case STATIC_DESTRUCTOR_ARRAY:
|
49✔ |
| 17 |
array_cleanup(&d->array); |
49✔ |
| 18 |
break;
|
49✔ |
| 19 |
|
|
| 20 |
default:
|
× |
|
UNCOV
21
|
assert_not_reached(); |
× |
| 22 |
} |
|
| 23 |
} |