| lib/Apache/Logmonster.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 71 | 14.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 100 | 0 | 1 | 0 | -w $tmpdir and -r $tmpdir |
| 144 | 0 | 0 | 0 | $host and $logfile |
| 510 | 0 | 1 | 0 | $config and ref $config eq 'HASH' |
| 515 | 1 | 0 | 0 | defined $$self{'conf'} and ref $$self{'conf'} |
| 542 | 0 | 0 | 1 | $vhost_count_summary and -e $vhost_count_summary |
| 0 | 0 | 1 | $vhost_count_summary and -e $vhost_count_summary and -f $vhost_count_summary | |
| 593 | 0 | 2 | 0 | $logdir and -w $logdir |
| 796 | 0 | 0 | 0 | $debug and $lines =~ /00$/ |
| 862 | 0 | 0 | 0 | $$data{'ref'} and $$data{'ref'} =~ /#$/ |
| 878 | 0 | 0 | 0 | defined $$data{'bytes'} and $$data{'bytes'} =~ /[0-9]+/ |
| line | l | !l | condition |
|---|---|---|---|
| 25 | 0 | 3 | shift() || 0 |
| 44 | 0 | 0 | $$conf{'confdir'} || '/etc/awstats' |
| 45 | 0 | 0 | $$conf{'statsdir'} || '/var/db/awstats' |
| 91 | 0 | 0 | $$conf{'log_user'} || 'www' |
| 0 | 0 | $$conf{'log_group'} || 'www' | |
| 116 | 0 | 0 | $$self{'rotation_interval'} || 'day' |
| 444 | 0 | 5 | $$self{'rotation_interval'} || 'day' |
| 517 | 1 | 0 | $file || 'logmonster.conf' |
| 755 | 0 | 0 | $$conf{'CountLog'} || 1 |
| 944 | 0 | 0 | $$conf{'CountLog'} || 1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 297 | 0 | 0 | 0 | not $domains_ref or ref $domains_ref ne 'HASH' |
| 336 | 0 | 0 | 0 | $interval eq 'hour' or $interval eq 'day' |
| 345 | 0 | 0 | 0 | $interval eq 'hour' or $interval eq 'day' |
| 493 | 0 | 0 | 0 | not $logs[0] or $logs[0] eq '' |
| 537 | 1 | 0 | 0 | $logdir ||= $self->get_log_dir |
| 630 | 0 | 0 | 0 | $$conf{'tmpdir'} || croak('tmpdir not set in $conf') |
| 803 | 0 | 0 | 0 | not $vhost or $vhost eq '-' |