Branch Coverage

blib/lib/Dancer2/Core/Role/Hookable.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
38 0 783 if $h_name eq "role"
39 569 214 if ($h_type =~ /(template|logger|serializer|session)/)
46 778 5 unless defined $postponed_hooks
54 0 5 unless $self->has_hook($name)
74 1 357 unless $self->has_hook($name)
86 1 2027 unless $self->has_hook($position)
103 1 22277 unless $name and not ref $name
107 3 22274 if exists $self->hook_aliases->{$name}
109 0 22277 unless $self->has_hook($name)
112 1547 20730 if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App")
117 587 93 if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App")