| blib/lib/WWW/Sitemap/Simple.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 22 | 86.3 |
| line | true | false | branch |
|---|---|---|---|
| 42 | 28 | 0 | unless $params |
| 48 | 1 | 27 | if ($self->fatal and $$self{'count'} > $LIMIT_URL_COUNT) |
| 59 | 0 | 2 | unless exists $$self{'url'}{$id} |
| 62 | 4 | 4 | if exists $$params{$key} |
| 77 | 1 | 10 | if ($self->fatal and length $xml > $LIMIT_URL_SIZE) |
| 87 | 5 | 5 | if (not $file) { } |
| 3 | 2 | elsif (my $re = ref $file) { } | |
| 91 | 1 | 2 | if ($re eq 'GLOB') { } |
| 107 | 1 | 1 | if ($file =~ /\.gz$/i) { } |
| 115 | 0 | 2 | unless $fh |
| 132 | 21 | 47 | if (my $value = $self->url->{$id}{$key}) |