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
69 0 0 0 exists $plg->config->{'Default format'} and $plg->config->{'Default format'} =~ /$fmt_rgx/
79 0 0 0 exists $method->{'Active'} and $method->{'Active'} =~ /(?i)[y1t]/
89 0 0 0 exists $method->{'Use sudo'} and $method->{'Use sudo'} =~ /(?i)[y1t]/
91 0 0 0 -f "$_/sudo" and -x "$_/sudo"
111 0 0 0 exists $plg->config->{'Routes'}{$_}{'Protected'} and $plg->config->{'Routes'}{$_}{'Protected'} =~ /(?i)[y1t]/
148 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"
274 0 0 0 exists $plg->config->{'Routes'}{$plg->route_name} and $plg->config->{'Routes'}{$plg->route_name}{'Protected'}
433 0 0 0 $plg->error and exists $conf->{'Accounts'}{'<any>'}
648 0 0 0 exists $plg->data->{'token'} and exists $TokenDB{$plg->data->{'token'}}
683 0 0 0 exists $plg->data->{'token'} and exists $TokenDB{$plg->data->{'token'}}
689 0 0 0 1 == @_ and 'HASH' eq ref $_[0]
718 0 0 0 exists $plg->data->{'token'} and exists $TokenDB{$plg->data->{'token'}}
727 0 0 0 1 == @_ and 'ARRAY' eq ref $_[0]

or 2 conditions

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