Branch Coverage

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


line true false branch
45 0 5 if $app->has_destroyed_session
51 0 3 if $@
62 0 1 if $app->has_destroyed_session
68 0 0 if $@
76 4 3 unless $self->shared->{'state'}
80 1 2 if ($rest < 0) { }
2 0 elsif ($self->shared->{'state'} == 1) { }
84 2 0 if (my $validator = $self->validator)
86 1 1 unless (&$validator($app, $rest, $sessid))
98 0 1 unless ref $self->validator eq 'CODE'
100 1 0 if ($time < time)