Branch Coverage

blib/lib/Sys/Export/Extent.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
17 25 19 if defined $attrs{'block_size'}
18 1 43 if defined $attrs{'size'}
19 1 43 if defined $attrs{'data'}
20 1 43 if defined $attrs{'device_offset'}
21 1 43 if defined $attrs{'start_lba'}
24 0 24 unless my $m = $self->can($_)
32 0 5 if builtin::blessed($x) and $x->isa($class)
33 5 0 if &isa_hash($x)
41 40 234 if (@v)
42 0 40 unless &isa_pow2($v[0])
50 67 261 if (@v)
53 0 21 if ($self->{'size'} // 0) > 0 and ($self->device_offset // -1) >= 0 and round_up_to_multiple($v[0], $self->block_size) != round_up_to_multiple($self->{'size'}, $self->block_size)
61 48 357 if (@v)
62 0 48 if ($v[0] // 0) > 0 and $v[0] & $self->block_size - 1
71 1 142 if (@v)
76 139 4 defined $ofs && $ofs >= 0 ? :
82 1 36 if (@v)
84 0 1 unless defined $lba
93 0 37 ($ofs // -1) < 0 || !$size ? :
98 64 78 if (@v)
99 0 64 if defined $v[0] and not &isa_data_ref($v[0])