Branch Coverage

lib/Benchmark/CSV.pm
Criterion Covered Total %
branch 34 54 62.9


line true false branch
22 8 1 ref $rest[0] ? :
27 2 1006 if ($nargs >= 2)
28 1 1 if $$self{'finalized'}
31 1003 3 if $$self{'output_fh'}
32 2 1 unless ($$self{'output'})
40 2 2 if ($nargs >= 2)
41 1 1 if $$self{'finalized'}
44 1 1 if defined $$self{'sample_size'}
54 0 2 if ($nargs >= 2)
55 0 0 if $$self{'finalized'}
58 1 1 if exists $$self{'scale_values'}
68 0 4 if ($nargs >= 2)
69 0 0 if $$self{'finalized'}
72 3 1 if exists $$self{'per_second'}
78 0 2 if $nargs < 3
79 0 2 if $$self{'finalized'}
81 0 2 if exists $$self{'instances'}{$name}
142 0 6 if ($nargs >= 2)
143 0 0 if $$self{'finalized'}
144 0 0 unless (exists $$timing_methods{$method})
149 5 1 if $$self{'timing_method'}
166 0 2 if ($self->per_second and $self->scale_values) { }
0 2 elsif ($self->per_second) { }
0 2 elsif ($self->scale_values) { }
187 0 2 unless (eval $build_sub)
196 0 1 if $$self{'headers_written'}
211 0 1 if $nargs < 2