Condition Coverage

blib/lib/ELF/Writer.pm
Criterion Covered Total %
condition 13 43 30.2


and 3 conditions

line !l l&&!r l&&r condition
225 0 0 6 defined $endian and $endian > 0
0 0 6 defined $endian and $endian > 0 and $endian < 3
226 0 0 6 defined $bits and $bits > 0
0 0 6 defined $bits and $bits > 0 and $bits < 3
298 0 0 2 defined $_->data and length $_->data
338 0 0 0 defined $_->data and length $_->data
379 2 0 2 @insert and $i <= @defined_ranges

or 2 conditions

line l !l condition
251 18 0 defined $self->$_ or croak("Attribute $_ is not defined")
391 0 2 $self->section_name_string_table_idx || 0
424 8 0 defined $seg->$_ or croak("Attribute $_ is not defined")
436 0 1 $seg->phys_addr || 0
0 1 $seg->phys_addr || 0

or 3 conditions

line l !l&&r !l&&!r condition
382 0 2 0 $i == @defined_ranges or $prev_end + $insert[0]->size <= $defined_ranges[$i]->data_offset
452 0 0 0 defined $sec->$_ or croak("Attribute $_ is not defined")
501 0 0 0 $offset or $size
534 0 0 0 $offset or $filesize