Branch Coverage

blib/lib/URI/Find.pm
Criterion Covered Total %
branch 40 56 71.4


line true false branch
82 0 208 unless @_ == 2
113 0 211 unless @_ == 2 or @_ == 3
136 109 313 if (defined $6) { }
142 232 81 if length $1
144 60 253 if (defined $2) { }
151 27 33 if ($is_uri) { }
163 4 29 if ($has_uri) { }
200 265 15 if (my $uri = $self->_is_uri(\$orig_match)) { }
245 0 211 unless @_ == 1
268 0 313 unless @_ == 1
285 0 219 unless @_ == 1
299 0 2 unless @_ == 1
325 0 280 unless @_ == 2
331 63 217 if ($orig_match =~ s/([\Q$cruftSet\E]+)$//)
335 1 62 if ($cruft =~ /^;/ and $orig_match =~ /\&(\#[1-9]\d{1,3}|[a-zA-Z]{2,8})$/)
344 50 13 if $cruft
358 18 297 if ($$cruft =~ /\Q$close\E$/ and $open_count == $close_count + 1)
380 0 280 unless @_ == 2
397 0 42 unless @_ == 2
400 36 6 unless $uri_cand =~ s[^(
416 0 2 unless @_ == 2
432 0 0 @_ ? :
433 0 0 @_ ? :
449 0 64 unless @_ == 2
510 0 280 unless @_ == 2
516 42 238 if $uri =~ $self->schemeless_uri_re and not $uri =~ /^
530 15 265 if $has_invalid_scheme or $is_empty
533 15 265 if ($@ or not defined $uri) { }