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 99 $self->has_app && $self->app->has_request
110 100 2 7 $self->show_stacktrace && $self->status =~ /^5/
174 8 113 8 $self->has_app and $self->app->has_serializer_engine
255 5 107 6 $self->has_app and $self->template
277 105 2 7 $self->show_stacktrace and $self->status eq 500
283 5 104 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 93 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 105 2 $ENV{'DANCER_PUBLIC'} || $self->has_app && $self->app->config->{'public_dir'}