Branch Coverage

blib/lib/Aozora2Epub.pm
Criterion Covered Total %
branch 29 56 51.7


line true false branch
30 0 0 if ($url_or_path =~ m[^https?://])
33 0 0 if ($url_or_path =~ /\.html$/)
41 0 37 if ($xhtml =~ m[/card\d+\.html$])
42 0 0 unless ($xhtml =~ m[^https?://])
54 0 37 if ($xhtml =~ m[/files/\d+_\d+\.html$])
55 0 0 unless ($xhtml =~ m[^https?://])
75 37 0 if $content
81 0 0 unless ($base =~ m[^https?://])
99 4 33 unless ($options{'no_fetch_assets'})
111 0 37 if (defined $options{'title_html'}) { }
114 37 0 do { $options{'title'} eq '' } ? :
37 0 defined $options{'title'} ? :
115 0 0 if ($options{'use_subtitle'})
124 0 37 if ($files[0] and $part_title)
133 37 0 unless $self->title
134 37 0 unless $self->author
142 0 37 $part_title ? :
154 0 37 $part_title ? :
173 8 26 if ($last)
179 11 15 unless ($elem)
181 8 3 unless $file
197 7 19 unless $e->isa("HTML::Element")
200 0 19 unless $lev
201 6 13 if ($lev > $level)
204 1 5 if ($cur[-1] and $cur[-1]{'level'} < $lev) { }
211 2 11 if ($lev < $level)
234 4 0 unless ($toc)
247 0 0 if ($options{'cover'})