Branch Coverage

blib/lib/Dancer2/Core/DSL.pm
Criterion Covered Total %
branch 19 42 45.2


line true false branch
22 0 0 unless defined $postponed_hooks
31 0 0 unless $self->has_hook($name)
147 0 0 if shift()
148 0 0 if shift()
165 56 71 if (@_ == 2)
166 11 45 unless $self->app->has_session
175 12 104 if @_ == 1
178 45 59 if @_ == 2
182 50 9 if (defined $value) { }
208 3 1 @_ == 1 ? :
229 3 4 if (XXX) { }
248 0 302 @_ == 3 ? :
317 1 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
321 0 0 unless ($Dancer2::Core::Route::WRITER)
331 0 0 unless (eval {
333 0 0 $Dancer2::Core::Route::ERROR_HANDLER ? :
349 0 1 unless @args % 2 == 0
360 1 0 unless $Dancer2::Core::Route::RESPONDER
382 0 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
392 0 0 unless my $writer = $Dancer2::Core::Route::WRITER
446 2 0 if ($self->app) { }