Branch Coverage

blib/lib/Parse/Apache/ServerStatus.pm
Criterion Covered Total %
branch 21 46 45.6


line true false branch
326 0 1 if @_
332 0 0 unless $self->request(@_)
338 0 0 if @_
340 0 0 unless ($$self{'url'})
347 0 0 unless ($response->is_success)
352 0 0 $$self{'content'} ? :
359 6 0 $_[0] ? :
361 0 6 unless ($content)
365 2 4 if ($content =~ /^(?:Total|BusyWorkers)/)
371 0 4 unless ($version)
379 0 4 unless (exists $$regex{$version})
394 0 4 unless ($rest)
413 4 0 if ($content =~ m[Server\s+Version:\s+Apache/(\d)]) { }
417 0 0 if ($content =~ /$rx/)
431 59 43 unless (defined $$data{$key})
437 6 6 if (not defined $$data{$key}) { }
4 2 elsif ($$data{$key} =~ /^([\d\.]+)\s+([kmg]{0,1}B)/i) { }
443 0 4 if ($b eq 'b') { }
2 2 elsif ($b eq 'kb') { }
2 0 elsif ($b eq 'mb') { }
0 0 elsif ($b eq 'gb') { }
460 2 0 $_[0] ? :
474 0 2 unless ($rest)