Condition Coverage

blib/lib/Dancer2/Plugin/WebService.pm
Criterion Covered Total %
condition 0 73 0.0


and 3 conditions

line !l l&&!r l&&r condition
77 0 0 0 exists $plg->config->{'Default format'} and $plg->config->{'Default format'} =~ /$fmt_rgx/
85 0 0 0 exists $method->{'Active'} and $method->{'Active'} =~ /(?i)[y1t]/
95 0 0 0 exists $method->{'Use sudo'} and $method->{'Use sudo'} =~ /(?i)[y1t]/
97 0 0 0 -f "$_/sudo" and -x "$_/sudo"
115 0 0 0 $plg->session_enable and $plg->auth_method eq ""
125 0 0 0 exists $plg->config->{'Routes'}{$_}{'Protected'} and $plg->config->{'Routes'}{$_}{'Protected'} =~ /(?i)[y1t]/
175 0 0 0 -f "$plg->{'dir_session'}/$token/control/lastaccess" and -f "$plg->{'dir_session'}/$token/control/username"
0 0 0 -f "$plg->{'dir_session'}/$token/control/lastaccess" and -f "$plg->{'dir_session'}/$token/control/username" and -f "$plg->{'dir_session'}/$token/control/groups"
346 0 0 0 exists $plg->data->{'token'} and not defined $plg->token
371 0 0 0 exists $plg->config->{'Routes'}{$plg->route_name} and $plg->config->{'Routes'}{$plg->route_name}{'Protected'} == 1
449 0 0 0 $plg->config->{'Routes'}{$_}{'Built in'} && $plg->config->{'Routes'}{$_}{'Protected'} == 1
0 0 0 $plg->config->{'Routes'}{$_}{'Built in'} && $plg->config->{'Routes'}{$_}{'Protected'} == 0
0 0 0 !$plg->config->{'Routes'}{$_}{'Built in'} && $plg->config->{'Routes'}{$_}{'Protected'} == 1
0 0 0 !$plg->config->{'Routes'}{$_}{'Built in'} && $plg->config->{'Routes'}{$_}{'Protected'} == 0
515 0 0 0 $plg->error and exists $plg->auth_config->{'Accounts'}{''}
780 0 0 0 1 == @_ and "HASH" eq ref $_[0]
885 0 0 0 1 == @_ and "ARRAY" eq ref $_[0]

or 2 conditions

line l !l condition
79 0 0 $app->config->{'show_errors'} //= 0
80 0 0 $app->config->{'charset'} //= "UTF-8"
81 0 0 $app->config->{'encoding'} //= "UTF-8"
107 0 0 $method->{'Arguments'} //= []
239 0 0 ($app->request->env->{'HTTP_X_REAL_IP'} // $app->request->address) // "127.0.0.1"

or 3 conditions

line l !l&&r !l&&!r condition
239 0 0 0 $app->request->env->{'HTTP_X_REAL_IP'} // $app->request->address
661 0 0 0 $plg->Format->{'from'} eq "human" or $plg->Format->{'from'} eq "perl"
686 0 0 0 $plg->Format->{'from'} eq "human" or $plg->Format->{'from'} eq "perl"
699 0 0 0 $plg->Format->{'from'} eq "human" or $plg->Format->{'from'} eq "perl"