Branch Coverage

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


line true false branch
38 0 761 if $h_name eq "role"
39 552 209 if ($h_type =~ /(template|logger|serializer|session)/)
46 756 5 unless defined $postponed_hooks
54 0 5 unless $self->has_hook($name)
74 1 351 unless $self->has_hook($name)
86 1 1991 unless $self->has_hook($position)
103 1 22263 unless $name and not ref $name
107 3 22260 if exists $self->hook_aliases->{$name}
109 0 22263 unless $self->has_hook($name)
112 1538 20725 if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App")
117 584 93 if $self->$Dancer2::Core::Role::Hookable::_isa("Dancer2::Core::App")