Branch Coverage

blib/lib/OptArgs2/Pager.pm
Criterion Covered Total %
branch 19 54 35.1


line true false branch
21 1 0 if exists &{$c . '::_NEW';}
22 1 0 if exists &{$c . '::BUILD';}
24 0 1 if (exists &{$c . '::DOES';})
31 1 0 @_ > 1 ? :
1 1 @_ ? :
45 1 0 @_CLASS > 1 ? :
46 0 1 if exists $OptArgs2::Pager::_FIELDS->{'FIELDS'}
55 0 2 if @_ > 1
58 0 0 if @_ > 1
63 2 32 if (@_ > 1)
68 0 16 if @_ > 1
73 0 0 if @_ > 1
78 0 0 if (@_ > 1)
110 0 0 if (exists $ENV{'PAGER'})
111 0 0 unless length $ENV{'PAGER'}
116 0 0 unless $path
123 0 0 if $path
132 2 0 if $self->auto
138 5 2 if $self->fh->opened
140 2 0 unless (-t $self->orig_fh)
148 0 0 unless $^O eq "MSWin32"
150 0 0 unless $self->pid(CORE::open($self->fh, "|-", $pager))
153 0 0 $self->encoding ? :
0 0 unless binmode $self->fh, $self->encoding ? $self->encoding : ()
161 0 4 unless $self->fh and $self->fh->opened
164 0 4 if $self->fh ne $self->orig_fh
194 0 2 if $close