Branch Coverage

blib/lib/Number/Natural/SetTheory.pm
Criterion Covered Total %
branch 20 30 66.6


line true false branch
27 0 80 unless int $number == $number
29 0 0 if (not ref $set and $set =~ /^\d+$/ and int $set == $set)
31 0 0 $set == $number ? :
34 0 80 unless ref $set eq 'ARRAY'
38 1 79 if $count != $number
41 40 39 if $count == 0
50 64 1 if (defined $number and exists $accounted_for{$number})
52 0 64 if ($accounted_for{$number}) { }
64 0 elsif (not $accounted_for{$number}) { }
63 1 38 if (grep {not $_;} values %accounted_for)
75 0 15 unless ($num =~ /^\d+$/ and int $num == $num)
80 8 7 if $num == 0
89 0 1 if (not ref $set and $set =~ /^\d+$/ and int $set == $set)
94 1 70 unless ref $set eq 'ARRAY'
96 69 1 if (set_is_number($set, scalar @$set))