Condition Coverage

blib/lib/Sys/Export/GPT.pm
Criterion Covered Total %
condition 25 53 47.1


and 3 conditions

line !l l&&!r l&&r condition
58 0 0 2 &isa_pow2($v[0]) and $v[0] >= 128
68 127 0 5 $_ && 'Sys::Export::GPT::Partition'->coerce($_)
193 0 0 5 $self->first_block <= $pttn->[$_]->start_lba and $pttn->[$_]->end_lba <= $self->last_block
242 195 5 0 defined $_ && defined $_->data

or 2 conditions

line l !l condition
41 5 0 $self->{'partitions'} // []
71 28 0 $self->{'partitions'} // []
129 5 0 $self->{'entry_table_lba'} //= 2
165 4 1 $self->{'last_block'} // 0
193 5 0 not defined $pttn->[$_] or $self->first_block <= $pttn->[$_]->start_lba and $pttn->[$_]->end_lba <= $self->last_block or croak("partition $_ exceeds range of [first_block, last_block]")
309 5 0 $part->name // ""
312 0 5 $part->flags // 0

or 3 conditions

line l !l&&r !l&&!r condition
113 5 0 0 $device_size //= $self->device_size
132 4 1 0 $self->{'first_block'} //= $self->{'entry_table_lba'} + $n_table_blocks
169 0 1 0 $self->{'last_block'} //= $max_part_lba
170 0 1 0 $self->{'backup_table_lba'} //= $self->{'last_block'} + 1
171 0 1 0 $self->{'backup_header_lba'} //= $self->{'backup_table_lba'} + $n_table_blocks
174 4 0 0 $self->{'backup_header_lba'} //= $end_lba
175 4 0 0 $self->{'backup_table_lba'} //= $self->{'backup_header_lba'} - $n_table_blocks
176 4 0 0 $self->{'last_block'} //= $self->{'backup_table_lba'} - 1
193 195 5 0 not defined $pttn->[$_] or $self->first_block <= $pttn->[$_]->start_lba and $pttn->[$_]->end_lba <= $self->last_block