Branch Coverage

blib/lib/Dancer2/Core/Role/Hookable.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
37 0 806 if $h_name eq "role"
38 606 200 if ($h_type =~ /(template|logger|serializer|session)/)
45 801 5 unless defined $postponed_hooks
53 0 5 unless $self->has_hook($name)
73 1 328 unless $self->has_hook($name)
85 1 1666 unless $self->has_hook($position)
102 1 22163 unless $name and not ref $name
106 3 22160 if exists $self->hook_aliases->{$name}
108 0 22163 unless $self->has_hook($name)
111 1459 20704 if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App")