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 306 @_ == 3 ? :
314 1 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
318 0 0 unless ($Dancer2::Core::Route::WRITER)
328 0 0 unless (eval {
330 0 0 $Dancer2::Core::Route::ERROR_HANDLER ? :
346 0 1 unless @args % 2 == 0
357 1 0 unless $Dancer2::Core::Route::RESPONDER
379 0 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
389 0 0 unless my $writer = $Dancer2::Core::Route::WRITER
442 2 0 if ($self->app) { }