Branch Coverage

blib/lib/URL/Normalize.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
203 17 0 if (my $URI = $self->URI) { }
238 43 0 if (my $URI = $self->URI)
244 8 161 if ($segment eq '.' or $segment eq '...')
248 38 123 if ($segment eq '..')
257 18 25 if not $new_path =~ m[/$] and $path =~ m[/$]
258 12 31 unless $new_path =~ m[^/]
336 56 0 if (my $URI = $self->URI)
337 56 0 if (my $path = $URI->path)
372 15 0 if (my $URI = $self->URI)
373 12 3 if ($URI->as_string =~ /\?/)
380 32 2 unless (ref $values)
426 2 0 if (my $URI = $self->URI)
434 8 2 unless ($seen{$key}{$value})
474 2 0 if (my $URI = $self->URI)
481 4 3 if (defined $value and length $value)
582 5 0 if (my $URI = $self->URI)
620 1 0 if (my $URI = $self->URI)