Branch Coverage

blib/lib/EBook/MOBI/MobiPerl/MobiHeader.pm
Criterion Covered Total %
branch 8 52 15.3


line true false branch
33 0 0 unless exists $record->{'data'}
36 0 0 if length $record->{'data'} < 16
56 0 0 if $spare != 0
509 93 0 if ($self->get_version == 4)
522 0 6 if $pub
525 0 6 if $desc
528 0 6 if $subj
531 0 6 if ($coffset >= 0)
538 0 6 if ($toffset >= 0)
561 3 0 if ($use_extended_header)
581 3 0 if (defined $langmap{$langnumber})
655 0 0 if ($diff <= 0) { }
662 0 0 if ($comp)
711 0 0 if (defined $langmap{$langnumber})
734 0 0 if (defined $data) { }
751 0 0 if ($exthflg & 64) { }
761 0 0 if ($ver < 4)
766 0 0 if ($length < 232)
767 0 0 if ($length < 156)
777 0 0 if ($addflag) { }
780 0 0 if (defined $data) { }
795 0 0 if ($exthdiff <= 0)
820 0 0 if ($exttitleoffset > $startblock and $offset > 0)
825 0 0 if ($ehlen > 152)
827 0 0 if ($drmoffset != 4294967295 and $drmoffset > $startblock and $offset > 0)
838 0 0 if (defined $booktypedesc{$type})