blib/lib/Dancer2/Plugin/PageHistory/PageSet.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 18 | 83.3 |
line | true | false | branch |
---|---|---|---|
93 | 55 | 0 | if (not &blessed($page) and ref $page eq 'HASH') |
124 | 7 | 24 | unless ($self->can($method)) |
148 | 3 | 17 | unless defined $args{'path'} |
152 | 15 | 2 | if (not $self->pages->{$type} && $self->pages->{$type}[0] or $self->pages->{$type}[0]->uri ne $page->uri) |
163 | 4 | 11 | if @{$self->pages->{$type};} > $self->max_items |
182 | 0 | 35 | unless defined $index |
183 | 31 | 4 | unless $type |
185 | 24 | 11 | if ($self->has_pages and defined $self->pages->{$type}[$index]) |
226 | 2 | 0 | wantarray ? : |