Branch Coverage

blib/lib/Math/Logic/Ternary/Calculator/State.pm
Criterion Covered Total %
branch 11 36 30.5


line true false branch
31 0 2 unless (defined $size)
34 0 2 if ($size < 1 or $MAX_WORD_SIZE < $size)
41 0 2 unless (defined $mode)
44 0 2 if (eval { do { $mode->isa('Math::Logic::Ternary::Calculator::Mode') } })
48 2 0 if (0 <= $mode and $mode < @all_modes)
56 0 0 $obj->can('as_base27') ? :
62 0 2 if ($size > 81)
72 0 2 if ($size > 36)
78 0 0 $int < 0 ? :
87 0 2 if ($strlen < 6)
90 1 1 if ($b27len < 6)
93 0 2 if ($declen < 6)
101 0 0 $int < 0 ? :
147 0 0 unless eval { do { $mode->isa('Math::Logic::Ternary::Calculator::Mode') } }
176 0 0 @operands ? :
202 0 0 $mode->is_balanced ? :
219 0 0 if (not $what or 1 == $what)
223 0 0 if (not $what or 2 == $what)