push
github
22 of 32 new or added lines in 4 files covered. (68.75%)
4308 existing lines in 77 files now uncovered.328373 of 453998 relevant lines covered (72.33%)
1552889.91 hits per line
| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
| 2 |
|
|
| 3 |
#include "static-destruct.h" |
|
| 4 |
|
|
| 5 |
void static_destruct_impl(const StaticDestructor *start, const StaticDestructor *end) { |
67,654✔ |
| 6 |
if (!start)
|
67,654✔ |
| 7 |
return;
|
|
| 8 |
|
|
| 9 |
for (const StaticDestructor *d = start; d < end; d++) |
1,130,885✔ |
| 10 |
switch (d->type) {
|
1,074,101✔ |
| 11 |
case STATIC_DESTRUCTOR_SIMPLE:
|
1,074,056✔ |
| 12 |
d->simple.destroy(d->simple.data); |
1,074,056✔ |
| 13 |
break;
|
1,074,056✔ |
| 14 |
|
|
| 15 |
case STATIC_DESTRUCTOR_ARRAY:
|
45✔ |
| 16 |
array_cleanup(&d->array); |
45✔ |
| 17 |
break;
|
45✔ |
| 18 |
|
|
|
UNCOV
19
|
default:
|
× |
| 20 |
assert_not_reached(); |
× |
| 21 |
} |
|
| 22 |
} |