Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
70 0 0 0 exists $plg->config->{'Default format'} and $plg->config->{'Default format'} =~ /$fmt_rgx/
80 0 0 0 exists $method->{'Active'} and $method->{'Active'} =~ /(?i)[y1t]/
90 0 0 0 exists $method->{'Use sudo'} and $method->{'Use sudo'} =~ /(?i)[y1t]/
92 0 0 0 -f "$_/sudo" and -x "$_/sudo"
112 0 0 0 exists $plg->config->{'Routes'}{$_}{'Protected'} and $plg->config->{'Routes'}{$_}{'Protected'} =~ /(?i)[y1t]/
149 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"
281 0 0 0 exists $plg->config->{'Routes'}{$plg->route_name} and $plg->config->{'Routes'}{$plg->route_name}{'Protected'}
431 0 0 0 $plg->error and exists $conf->{'Accounts'}{'<any>'}
646 0 0 0 exists $plg->data->{"token"} and exists $TokenDB{$plg->data->{"token"}}
681 0 0 0 exists $plg->data->{"token"} and exists $TokenDB{$plg->data->{"token"}}
687 0 0 0 1 == @_ and "HASH" eq ref $_[0]
716 0 0 0 exists $plg->data->{"token"} and exists $TokenDB{$plg->data->{"token"}}
725 0 0 0 1 == @_ and "ARRAY" eq ref $_[0]

or 2 conditions

line l !l condition
67 0 0 $app->config->{'charset'} //= "UTF-8"
68 0 0 $app->config->{'encoding'} //= "UTF-8"
69 0 0 $app->config->{'show_errors'} //= 0
102 0 0 $method->{'Arguments'} //= []
191 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
191 0 0 0 $app->request->env->{'HTTP_X_REAL_IP'} // $app->request->address
347 0 0 0 $_ // $^O