Branch Coverage

lib/CellBIS/Random.pm
Criterion Covered Total %
branch 52 104 50.0


line true false branch
42 0 6 unless $arg_len == 2 or $arg_len >= 3
45 4 2 if (&blessed($self)) { }
46 2 2 if defined $self->{'string'}
48 4 0 if $arg_len >= 2
49 2 2 if $arg_len >= 3
51 2 0 if $arg_len >= 3
58 0 6 if ($nested == 1) { }
0 6 elsif ($nested == 2) { }
59 0 0 if ($count_odd != 0 and $count_even != 0)
66 0 0 if ($count_odd != 0 and $count_even == 0)
77 0 0 if ($count_odd != 0 and $count_even != 0)
83 0 0 if ($count_odd != 0 and $count_even == 0)
90 0 0 if ($count_odd == 0 and $count_even != 0)
101 6 0 if ($count_odd != 0 and $count_even != 0)
106 0 6 if ($count_odd != 0 and $count_even == 0)
110 0 6 if ($count_odd == 0 and $count_even != 0)
115 4 2 if &blessed($self)
126 0 3 unless $arg_len == 2 or $arg_len >= 3
129 2 1 if (&blessed($self)) { }
130 2 0 if $self->{'string'}
132 2 0 if $arg_len >= 2
133 0 2 if $arg_len >= 3
135 1 0 if $arg_len >= 3
142 0 3 if ($nested == 1) { }
0 3 elsif ($nested == 2) { }
143 0 0 if ($count_odd != 0 and $count_even != 0)
150 0 0 if ($count_odd != 0 and $count_even == 0)
161 0 0 if ($count_odd != 0 and $count_even != 0)
168 0 0 if ($count_odd != 0 and $count_even == 0)
175 0 0 if ($count_odd == 0 and $count_even != 0)
186 3 0 if ($count_odd != 0 and $count_even != 0)
190 0 3 if ($count_odd != 0 and $count_even == 0)
194 0 3 if ($count_odd == 0 and $count_even != 0)
199 2 1 if &blessed($self)
212 6 6 if ($type eq 'odd_even')
218 6 6 if ($type eq 'even_odd')
234 3 3 if ($type eq 'odd_even')
240 3 3 if ($type eq 'even_odd')
266 6 0 if ($len_even > $len_odd)
269 66 0 if exists $arr_even[$i]
270 60 6 if exists $arr_odd[$i]
274 0 6 if ($len_even == $len_odd)
277 0 0 if exists $arr_even[$i]
278 0 0 if exists $arr_odd[$i]
300 9 0 if ($len_even > $len_odd)
303 99 0 if exists $arr_even[$i]
304 90 9 if exists $arr_odd[$i]
308 0 9 if ($len_even == $len_odd)
311 0 0 if exists $arr_even[$i]
312 0 0 if exists $arr_odd[$i]
347 30 30 if ($type eq 'odd')
352 30 30 if ($type eq 'even')