Condition Coverage

blib/lib/Data/Printer/Object.pm
Criterion Covered Total %
condition 54 101 53.4


and 3 conditions

line !l l&&!r l&&r condition
264 3 2 239 not $ref and exists $targets{lc $output}
2 1 2 $ref and $ref eq 'GLOB'
1 1 1 not $ref and (\$output) =~ /GLOB\([^()]+\)$/
441 3 2 0 $colored eq 'auto' and exists $ENV{'ANSI_COLORS_DISABLED'} || $self->output eq 'handle' || $self->output eq 'file'
455 5 0 0 $ENV{'COLORTERM'} and $ENV{'COLORTERM'} eq 'truecolor'
5 0 0 $ENV{'TERM_PROGRAM'} and $ENV{'TERM_PROGRAM'} eq 'iTerm.app'
5 0 0 $ENV{'TERM_PROGRAM'} and $ENV{'TERM_PROGRAM'} eq 'Apple_Terminal'
0 5 0 $ENV{'TERM'} and $ENV{'TERM'} =~ /\-256(?:color)?\z/i
0 5 0 $ENV{'TERM'} and $ENV{'TERM'} =~ /\A(?:screen|xterm|vt100|rxvt)/i || $ENV{'TERM'} =~ /color|ansi|cygwin|linux/i
540 537 94 5 defined $class and $class eq 'Regexp'
541 0 0 0 $] < 5.011 and $ref_kind eq 'SCALAR'
606 0 0 20 ref $data and keys %{$$self{'_seen'};}
619 49 0 25 ref $data eq 'REF' and ref $$data
652 29 4 0 ref $data eq 'SCALAR' && $self->resolve_scalar_refs
686 601 23 51 $self->show_refcount and ref $data ne 'SCALAR'
624 31 20 $self->show_refcount and ref $data ne 'SCALAR' and $seen->{'refcount'} > 1
703 675 0 0 $self->show_memsize and $self->show_memsize eq 'all' || $self->show_memsize >= $self->{'_position'}
710 0 0 0 $unit eq 'AUTO' and $size > 1048576
0 0 0 $unit eq 'AUTO' and $size > 1024
743 0 235 435 $realtype and $realtype eq 'REF' || $realtype eq 'SCALAR'
776 1824 1 3 $self->{'_output_color_level'} and defined $color_type
779 1 1 1 not defined $sgr_color and defined $default_color
796 68 600 7 $self->show_readonly and &Internals::SvREADONLY($_[1])

or 2 conditions

line l !l condition
459 0 0 $ENV{'TERM_PROGRAM_VERSION'} || '0'

or 3 conditions

line l !l&&r !l&&!r condition
264 2 0 3 $ref and $ref eq 'GLOB' or not $ref and (\$output) =~ /GLOB\([^()]+\)$/
1 1 0 not $ref or $ref eq 'SCALAR'
441 0 0 2 exists $ENV{'ANSI_COLORS_DISABLED'} || $self->output eq 'handle' || $self->output eq 'file'
239 0 5 not $colored or $colored eq 'auto' and exists $ENV{'ANSI_COLORS_DISABLED'} || $self->output eq 'handle' || $self->output eq 'file'
455 5 0 0 $ENV{'TERM'} =~ /\A(?:screen|xterm|vt100|rxvt)/i || $ENV{'TERM'} =~ /color|ansi|cygwin|linux/i
541 5 0 0 $ref_kind eq 'Regexp' or $] < 5.011 and $ref_kind eq 'SCALAR'
703 0 0 0 $self->show_memsize eq 'all' || $self->show_memsize >= $self->{'_position'}
710 0 0 0 $unit eq 'M' or $unit eq 'AUTO' and $size > 1048576
0 0 0 $unit eq 'K' or $unit eq 'AUTO' and $size > 1024
743 68 367 235 $realtype eq 'REF' || $realtype eq 'SCALAR'