Branch Coverage

blib/lib/Dancer2/Plugin/Role/Shutdown.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
43 0 5 if $app->has_destroyed_session
49 0 3 if $@
59 0 1 if $app->has_destroyed_session
66 0 0 if $@
73 4 3 unless $self->shared->{'state'}
77 1 2 if ($rest < 0) { }
2 0 elsif ($self->shared->{'state'} == 1) { }
82 2 0 if (my $validator = $self->validator)
84 1 1 unless (&$validator($app, $rest, $sessid))
97 0 1 unless ref $self->validator eq 'CODE'
100 1 0 if ($time < time)