| blib/lib/Dancer2/Core/Role/Hookable.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 20 | 85.0 |
| line | true | false | branch |
|---|---|---|---|
| 37 | 0 | 793 | if $h_name eq "role" |
| 38 | 596 | 197 | if ($h_type =~ /(template|logger|serializer|session)/) |
| 45 | 788 | 5 | unless defined $postponed_hooks |
| 53 | 0 | 5 | unless $self->has_hook($name) |
| 73 | 1 | 325 | unless $self->has_hook($name) |
| 85 | 1 | 1642 | unless $self->has_hook($position) |
| 102 | 1 | 22124 | unless $name and not ref $name |
| 106 | 3 | 22121 | if exists $self->hook_aliases->{$name} |
| 108 | 0 | 22124 | unless $self->has_hook($name) |
| 111 | 1427 | 20697 | if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App") |