| blib/lib/PAGI/Middleware/Maintenance.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 9 | 27 | 33.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 137 | 0 | 0 | 0 | $ip =~ /^[\d.]+$/ and $network =~ /^[\d.]+$/ |
| 142 | 0 | 0 | 0 | defined $ip_num and defined $net_num |
| 159 | 0 | 0 | 0 | /^\d+$/ and $_ >= 0 |
| 0 | 0 | 0 | /^\d+$/ and $_ >= 0 and $_ <= 255 |
| line | l | !l | condition |
|---|---|---|---|
| 64 | 4 | 0 | $config->{'enabled'} // 0 |
| 65 | 1 | 3 | $config->{'bypass_ips'} // [] |
| 66 | 1 | 3 | $config->{'bypass_paths'} // [] |
| 68 | 0 | 4 | $config->{'content_type'} // "text/html" |
| 107 | 3 | 0 | $scope->{'path'} // "" |
| 117 | 2 | 0 | $scope->{'client'}[0] // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 69 | 0 | 4 | 0 | $config->{'body'} // $self->_default_body |