Branch Coverage

blib/lib/MarpaX/Languages/M4/Impl/Default/BaseConversion.pm
Criterion Covered Total %
branch 47 84 55.9


line true false branch
27 344 0 @_ ? :
344 0 do { Types::Standard::_is_class_loaded(do { my $tmp = $class }) } ? :
0 344 if @_ < 3
0 344 if @_ > 4
344 0 $#_ >= 0 ? :
344 0 Type::Tiny::XS::PositiveInt($bits) ? :
344 0 if ($#_ >= 0)
344 0 $#_ >= 1 ? :
344 0 Type::Tiny::XS::AUTO::TC4($base) ? :
344 0 if ($#_ >= 1)
344 0 $#_ >= 2 ? :
344 0 Type::Tiny::XS::Str($input) ? :
344 0 if ($#_ >= 2)
344 0 $#_ >= 3 ? :
344 0 Type::Tiny::XS::Bool($binary) ? :
344 0 if ($#_ >= 3)
44 1 343 if ($binary)
47 1 342 if ($base == 1)
49 0 1 if ($input =~ /[^1]/u)
67 0 424 if ($num >= $base)
69 0 0 if ($base <= 10) { }
74 0 0 if ($base == 11) { }
97 162 0 @_ ? :
162 0 do { Types::Standard::_is_class_loaded(do { my $tmp = $class }) } ? :
0 162 if @_ != 3
162 0 $#_ >= 0 ? :
162 0 Type::Tiny::XS::PositiveInt($base) ? :
162 0 if ($#_ >= 0)
162 0 $#_ >= 1 ? :
162 0 if (&Scalar::Util::blessed($v))
162 0 do { if (&Scalar::Util::blessed($v)) { my $method = $v->can('DOES') || $v->can('isa'); $v->$method('Bit::Vector'); } } ? :
162 0 if ($#_ >= 1)
162 0 $#_ >= 2 ? :
162 0 defined $min && !ref($min) && $min =~ /\A-?[0-9]+\z/u ? :
162 0 if ($#_ >= 2)
106 9 153 $v->Sign < 0 ? :
108 9 153 if ($signed) { }
116 1 161 if ($base == 1)
121 1 0 if (length $rep < $min)
124 0 1 if ($signed)
147 9 152 if ($signed)
150 9 152 if (substr($s, 0, 1) eq '-')