Branch Coverage

blib/lib/Pinto/Chrome/Term.pm
Criterion Covered Total %
branch 27 60 45.0


line true false branch
70 0 0 unless -t STDOUT
71 0 0 unless $pager
74 0 0 $ENV{'PINTO_PAGER_OPTIONS'} ? :
76 0 0 unless open my $pager_fh, '|-', $pager, @pager_options
95 30 4 unless $opts->{'no_newline'}
97 0 34 unless print {$self->stdout;} $msg
109 0 518 if $self->quiet
111 0 518 if ref $msg eq 'CODE'
113 42 476 if (itis($msg, 'Pinto::Exception'))
116 0 42 $ENV{'PINTO_DEBUG'} ? :
121 518 0 unless $opts->{'no_newline'}
123 0 518 unless print {$self->stderr;} $msg
131 70 0 unless $self->should_render_progress
135 0 0 unless print {$self->stderr;} '.'
145 141 0 unless $self->has_made_progress
146 0 0 unless $self->should_render_progress
148 0 0 unless print {$self->stderr;} "\n"
156 71 2 if $self->verbose
157 1 1 if $self->quiet
158 1 0 unless is_interactive()
167 0 0 unless local $ENV{'VISUAL'} = $self->find_editor
177 0 0 $^O eq 'MSWin32' ? :
178 0 0 unless open STDIN, '<', $term
188 0 557 unless $string
189 462 95 unless defined $color_number
190 90 5 unless $self->color
202 0 5 unless defined $color_number
206 0 5 unless defined $color
218 3 6 if $ENV{$env_var}
224 0 3 if $found_cmd