Condition Coverage

blib/lib/Dancer2/Core/Error.pm
Criterion Covered Total %
condition 35 45 77.7


and 3 conditions

line !l l&&!r l&&r condition
106 5 5 105 $self->has_app && $self->app->has_request
110 100 8 7 $self->show_stacktrace && $self->status =~ /^5/
174 8 119 8 $self->has_app and $self->app->has_serializer_engine
255 5 113 6 $self->has_app and $self->template
277 105 8 7 $self->show_stacktrace and $self->status eq 500
283 5 110 3 $self->has_app and $self->app->config->{'error_template'}
341 3 0 4 $file and $line
344 3 0 4 $file and $line
397 3 0 4 $self->has_app && $self->app->settings
398 7 0 0 $self->has_app && $self->app->_has_session && $self->app->session->data
399 4 0 3 $self->has_app && $self->app->has_request && $self->app->request->env
433 0 0 61 $hash and XXX

or 2 conditions

line l !l condition
111 99 9 _html_encode($self->message) || 'Wooops, something went wrong'
334 7 0 $message ||= "Wooops, something went wrong"
431 54 7 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
90 0 111 2 $ENV{'DANCER_PUBLIC'} || $self->has_app && $self->app->config->{'public_dir'}