| blib/lib/ELF/Writer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 43 | 27.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 220 | 0 | 0 | 3 | defined $endian and $endian > 0 |
| 0 | 0 | 3 | defined $endian and $endian > 0 and $endian < 3 | |
| 221 | 0 | 0 | 3 | defined $bits and $bits > 0 |
| 0 | 0 | 3 | defined $bits and $bits > 0 and $bits < 3 | |
| 293 | 0 | 0 | 1 | defined $_->data and length $_->data |
| 333 | 0 | 0 | 0 | defined $_->data and length $_->data |
| 374 | 1 | 0 | 1 | @insert and $i <= @defined_ranges |
| line | l | !l | condition |
|---|---|---|---|
| 246 | 9 | 0 | defined $self->$_ or croak("Attribute $_ is not defined") |
| 386 | 0 | 1 | $self->section_name_string_table_idx || 0 |
| 419 | 4 | 0 | defined $seg->$_ or croak("Attribute $_ is not defined") |
| 431 | 0 | 0 | $seg->phys_addr || 0 |
| 0 | 1 | $seg->phys_addr || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 377 | 0 | 1 | 0 | $i == @defined_ranges or $prev_end + $insert[0]->size <= $defined_ranges[$i]->data_offset |
| 447 | 0 | 0 | 0 | defined $sec->$_ or croak("Attribute $_ is not defined") |
| 496 | 0 | 0 | 0 | $offset or $size |
| 529 | 0 | 0 | 0 | $offset or $filesize |