Branch Coverage

blib/lib/Data/Random.pm
Criterion Covered Total %
branch 75 98 76.5


line true false branch
75 0 130 if $options{'min'} > $options{'max'}
77 0 130 if $options{'min'} < 0 or $options{'min'} != int $options{'min'}
79 0 130 if $options{'max'} < 0 or $options{'max'} != int $options{'max'}
87 0 130 if $options{'size'} < 0 or $options{'size'} != int $options{'size'}
91 26 104 exists $options{'shuffle'} ? :
97 0 130 if (ref $options{'wordlist'}) { }
112 130 0 if $close_wl
115 104 26 if $options{'shuffle'}
118 130 0 if (wantarray) { }
136 302 2718 if (ref $options{'set'} ne 'ARRAY')
139 94 208 if ($options{'set'} eq 'all') { }
52 156 elsif ($options{'set'} eq 'alpha') { }
26 130 elsif ($options{'set'} eq 'upperalpha') { }
26 104 elsif ($options{'set'} eq 'loweralpha') { }
10 94 elsif ($options{'set'} eq 'numeric') { }
62 32 elsif ($options{'set'} eq 'alphanumeric') { }
32 0 elsif ($options{'set'} =~ /^(misc|char)$/) { }
171 1510 1510 wantarray ? :
183 0 3164 unless $options{'set'}
187 633 1265 unless exists $options{'min'} or exists $options{'max'} or exists $options{'size'}
195 0 3164 if $options{'min'} > $options{'max'}
197 0 3164 if $options{'min'} < 0 or $options{'min'} != int $options{'min'}
199 0 3164 if $options{'max'} < 0 or $options{'max'} != int $options{'max'}
207 0 3164 if $options{'size'} < 0 or $options{'size'} != int $options{'size'}
209 0 3164 if $options{'size'} > @{$options{'set'};}
213 632 2532 exists $options{'shuffle'} ? :
230 2532 632 if $options{'shuffle'}
233 3164 0 if (wantarray) { }
247 1 29 @_ == 1 && ref $_[0] eq 'ARRAY' ? :
250 0 30 unless $options{'set'}
270 4000 1000 if ($options{'min'}) { }
271 1000 3000 if ($options{'min'} eq 'now') { }
281 2000 3000 if ($options{'max'}) { }
282 1000 1000 if ($options{'max'} eq 'now') { }
294 0 5000 if $delta_days < 0
310 756011 1008010 if ($options{'min'}) { }
311 1 756010 if ($options{'min'} eq 'now') { }
324 0 756010 if ($@)
334 180021 1584000 if ($options{'max'}) { }
335 1 180020 if ($options{'max'} eq 'now') { }
348 0 180020 if ($@)
363 0 1764021 if $delta_secs < 0
389 4000 1000 if ($options{'min'}) { }
390 1000 3000 if ($options{'min'} eq 'now') { }
407 2000 3000 if ($options{'max'}) { }
408 1000 1000 if ($options{'max'} eq 'now') { }
426 0 5000 if $delta_secs < 0
443 0 0 if $@
496 58375 8013 if $i != $j