Branch Coverage

blib/lib/HTTPD/Bench/ApacheBench.pm
Criterion Covered Total %
branch 15 54 27.7


line true false branch
21 3 0 if (ref $self ne 'HASH')
32 3 0 if ref $$self{'runs'} ne 'ARRAY'
38 3 0 unless defined $$self{'timelimit'}
39 3 0 unless defined $$self{'keepalive'}
40 3 0 if not defined $$self{'memory'}
50 0 0 if defined $$opt{$_}
56 1 1 if $arg
62 1 1 if $arg
68 0 1 if defined $arg
74 0 1 if $arg
80 0 0 if $arg
86 0 0 if $arg
92 0 1 if $arg
98 0 0 if $arg
104 0 0 if ref $$self{'runs'} ne 'ARRAY'
107 0 0 $run->repeat ? :
108 0 0 if ref $run->urls eq 'ARRAY'
124 0 0 if ref $$self{'runs'} ne 'ARRAY'
130 0 0 unless $runobj->ready_to_execute or $runobj->prepare_for_execute
134 0 0 unless ($runobj->repeat)
138 0 0 unless (defined $runobj->memory)
155 0 0 if ref $altered{$run_no} and $altered{$run_no}{$param}
169 0 23 unless ref $$self{'runs'} eq 'ARRAY' and blessed($$self{'runs'}[$run_no]) and $$self{'runs'}[$run_no]->isa('HTTPD::Bench::ApacheBench::Run')
171 0 23 if (blessed $run and $run->isa('HTTPD::Bench::ApacheBench::Run'))
181 0 4 unless ref $$self{'runs'} eq 'ARRAY' and blessed $newrun and $newrun->isa('HTTPD::Bench::ApacheBench::Run')
189 0 0 if ref $$self{'runs'} ne 'ARRAY'
198 0 0 unless $$self{'runs'}