Condition Coverage

blib/lib/SignalWire/Agents/Server/AgentServer.pm
Criterion Covered Total %
condition 5 33 15.1


and 3 conditions

line !l l&&!r l&&r condition
127 0 0 0 $static_route eq "/" and $path =~ m[^/]
128 0 0 0 $static_route eq "/" and $path eq "/"
156 0 0 0 -f $abs_path and -r $abs_path

or 2 conditions

line l !l condition
109 7 0 $env->{'PATH_INFO'} // "/"
159 0 0 $ext // ""
160 0 0 $mime_types{$ext} // "application/octet-stream"

or 3 conditions

line l !l&&r !l&&!r condition
27 2 13 0 $route //= $agent->route
127 0 0 0 $path eq $static_route or index($path, "$prefix/") == 0
0 0 0 $path eq $static_route or index($path, "$prefix/") == 0 or $static_route eq "/" and $path =~ m[^/]
188 3 0 1 $path eq $route or index($path, "$route/") == 0
221 0 0 0 $opts{'host'} // $self->host
222 0 0 0 $opts{'port'} // $self->port