Branch Coverage

blib/lib/bigfloat.pm
Criterion Covered Total %
branch 40 72 55.5


line true false branch
66 0 0 if ($str =~ /^0(?:[Oo]|_*[0-7])/ and $nstr = "Math::BigInt"->oct_str_to_dec_flt_str($str) or $nstr = "Math::BigInt"->dec_str_to_dec_flt_str($str) or $str =~ /^0[Xx]/ and $nstr = "Math::BigInt"->hex_str_to_dec_flt_str($str) or $str =~ /^0[Bb]/ and $nstr = "Math::BigInt"->bin_str_to_dec_flt_str($str))
122 24 0 if ($str =~ s/ ^ ( 0? [xX] )? ( [0-9a-fA-F]* ( _ [0-9a-fA-F]+ )* ) //x) { }
125 0 24 unless length $chrs
133 0 24 if (length $str)
152 0 24 if $str =~ /^0?[xX]/
158 0 24 if ($str =~ /^0?[bB]/)
162 0 0 if ($str =~ s/ ^ ( 0? [bB] )? ( [01]* ( _ [01]+ )* ) //x)
165 0 0 unless length $chrs
171 0 0 if (length $str)
183 24 0 if ($str =~ s/ ^ ( 0? [oO] )? ( [0-7]* ( _ [0-7]+ )* ) //x)
186 0 24 unless length $chrs
193 0 24 if (length $str)
204 0 0 @_ ? :
211 0 0 @_ ? :
224 38 1 $prev_hex ? :
0 39 $hh->{'bigint'} ? :
0 39 $hh->{'bigrat'} ? :
1 39 $hh->{'bigfloat'} ? :
38 1 $prev_oct ? :
0 39 $hh->{'bigint'} ? :
0 39 $hh->{'bigrat'} ? :
1 39 $hh->{'bigfloat'} ? :
245 42 15 if $overridden
280 2 37 if ($param =~ /^a(ccuracy)?$/)
287 2 35 if ($param =~ /^p(recision)?$/)
294 0 35 if ($param eq "round_mode")
301 9 26 if ($param =~ /^(l|lib|try|only)$/)
302 2 7 $param eq 'l' ? :
303 9 0 if @_
307 0 26 if ($param =~ /^(v|version)$/)
312 0 26 if ($param =~ /^(t|trace)$/)
315 0 0 if $@
319 6 20 if ($param =~ /^(PI|e|bexp|bpi|hex|oct)\z/)
328 0 37 if $@
331 0 37 if ($ver)
370 7 3 if $str =~ /^0[XxBb]/