Branch Coverage

lib/WWW/Flatten.pm
Criterion Covered Total %
branch 10 54 18.5


line true false branch
78 0 0 if $self->log_name
83 0 0 unless (ref $_)
95 0 0 unless $res->code == 200
99 0 0 unless $self->is_target->($job2)
100 0 0 unless $job2->depth <= $self->depth
104 0 0 if (my $cb = $self->normalize)
108 0 0 if $self->filenames->{$url}
115 0 0 if $ext
118 0 0 if not $type =~ /$html_type_regex/ || $type =~ /$css_type_regex/ and -f $self->basedir . $new_id
129 0 0 if ($type and $type =~ /$html_type_regex/) { }
0 0 elsif ($type and $type =~ /$css_type_regex/) { }
134 0 0 if (my $base_tag = $cont->at('base'))
149 0 0 if $self->log
156 0 0 if $self->log
159 0 0 if (++$self->_retrys->{$md5} < $self->max_retry) { }
161 0 0 if $self->log
164 0 0 if $self->log
175 0 24 if (my $cb = $self->normalize)
179 3 21 unless $file
182 0 21 if $^O eq 'MSWin32'
183 21 0 if $file
193 13 51 if $dom->{$_}
198 2 0 if ($_[0] =~ qr/http\-equiv="?Refresh"?/i and $_[0]{'content'})
225 4 5 if $url =~ s/^(['"])//
234 0 0 unless -d $path->dirname
235 0 0 if $encode
251 0 0 if ($self->log)