Branch Coverage

blib/lib/Dancer2/Core/DSL.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
22 0 0 unless defined $postponed_hooks
31 0 0 unless $self->has_hook($name)
148 0 0 if shift()
149 0 0 if shift()
166 56 71 if (@_ == 2)
167 11 45 unless $self->app->has_session
176 12 104 if @_ == 1
179 45 59 if @_ == 2
183 50 9 if (defined $value) { }
209 3 1 @_ == 1 ? :
230 3 4 if (is_arrayref($_[0])) { }
246 3 332 if (@_ == 4) { }
324 8 elsif (@_ == 2) { }
8 0 elsif (@_ == 3) { }
259 0 8 if (is_hashref($_[1])) { }
330 1 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
334 0 0 unless ($Dancer2::Core::Route::WRITER)
344 0 0 unless (eval { do { $Dancer2::Core::Route::WRITER->write(@_); 1 } })
346 0 0 $Dancer2::Core::Route::ERROR_HANDLER ? :
362 0 1 unless @args % 2 == 0
373 1 0 unless $Dancer2::Core::Route::RESPONDER
395 0 0 unless my $responder = $Dancer2::Core::Route::RESPONDER
405 0 0 unless my $writer = $Dancer2::Core::Route::WRITER
460 2 0 if ($self->app) { }