Branch Coverage

blib/lib/Data/Printer/Filter/SCALAR.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
21 319 0 ref $scalar_ref ? :
23 21 298 if (not defined $value) { }
288 10 elsif ($ddp->show_dualvar ne 'off') { }
6 4 elsif (_is_number($value)) { }
28 288 0 if defined $value
29 219 69 if ($numified) { }
8 61 elsif (not $numified and _is_number($value)) { }
30 207 12 if ("$numified" eq $value or $ddp->show_dualvar eq 'lax' and index("$numified", '.') != -1 && $value =~ /\A\s*${numified}[0]*\s*\z/ || index("$numified", '.') == -1 && $value =~ /\A\s*$numified(?:\.[0]*)?\s*\z/) { }
66 1 318 if ($ddp->show_tied and my $tie = ref tied $$scalar_ref)
80 77 0 if (defined $scalar_quotes)
82 0 77 if index($text, $scalar_quotes) >= 0
91 3 316 if $self->show_tainted and &Scalar::Util::tainted($$var)
97 1 318 if $self->show_unicode and utf8::is_utf8($$var)
107 0 79 if $maybe_a_number =~ /^-?0[0-9]/