Branch Coverage

blib/lib/Mojolicious/Plugin/Export.pm
Criterion Covered Total %
branch 42 48 87.5


line true false branch
116 8 0 $app->can('config') ? :
139 0 8 if ($opt->{'base'} and $opt->{'base'} =~ m[^[^/]])
145 5 0 m[^/] ? :
5 3 @{$opt->{'pages'};} ? :
158 0 40 if $history{$page}{'res'}
163 5 35 if ($res->is_error)
164 5 0 unless ($opt->{'quiet'})
172 5 30 if ($res->is_redirect)
183 25 5 if ($type and $type =~ m[^text/html] and my $dom = $res->dom)
190 16 42 if $url =~ m[^(?:[a-zA-Z]+:|//)]
192 5 37 if $url =~ /^#/
195 22 15 $url =~ m[^/] ? :
199 0 37 if (my $loc = $history{$path}{'redirect_to'}) { }
207 32 5 unless ($history{$path}{'res'})
222 25 5 $_->[1] =~ m[^text/html] ? :
231 25 6 if (ref $content eq 'Mojo::DOM')
237 5 53 if ($opt->{'base'} and $url =~ m[^/])
238 1 4 $url eq '/' ? :
250 25 6 if (ref $content eq 'Mojo::DOM')
260 25 6 unless ($to =~ m[[.][^/.]+$])
265 12 19 if (not -d $dir) { }
267 11 1 unless $quiet
270 18 1 unless $quiet
273 29 2 unless $quiet