Branch Coverage

blib/lib/Ask/Caroline.pm
Criterion Covered Total %
branch 2 84 2.3


line true false branch
40 0 0 if -t STDIN
46 0 9 ref $self ? :
9 0 (ref $self ? $self : 'Caroline'->new)->is_supported ? :
51 0 0 unless exists $opts{'prompt'}
53 0 0 if (exists $opts{'completion'}) { }
64 0 0 if (exists $opts{'text'})
73 0 0 if ($opts{'hide_text'} and do { require POSIX; $tio = 'POSIX::Termios'->new }) { }
100 0 0 unless exists $opts{'prompt'}
110 0 0 if (my(@copy) = @$findings)
113 0 0 if length $_ > $longest
137 0 0 $opts{'directory'} ? :
0 0 unless exists $opts{'prompt'}
139 0 0 unless ($opts{'text'})
146 0 0 $opts{'directory'} ? :
0 0 $opts{'directory'} ? :
0 0 $single ? :
159 0 0 unless $single
165 0 0 unless length $raw
170 0 0 if ($got->is_dir) { }
171 0 0 $opts{'directory'} ? :
177 0 0 $opts{'directory'} ? :
181 0 0 $_->is_dir ? :
182 0 0 if $got->is_dir
185 0 0 $got->is_dir ? :
195 0 0 if ($line eq '')
196 0 0 $single ? :
199 0 0 if ($opts{'existing'} and not path($line)->exists) { }
0 0 elsif ($opts{'directory'} and not path($line)->is_dir) { }
211 0 0 if $single
215 0 0 if $single
231 0 0 unless exists $opts{'prompt'}
233 0 0 if (exists $opts{'text'})
243 0 0 defined $_->[1] ? :
249 0 0 unless $opts{'hide_choices'}
254 0 0 unless $single
272 0 0 if ($line eq '')
273 0 0 $single ? :
276 0 0 if ($allowed{$line}) { }
278 0 0 if $single
287 0 0 unless $opts{'hide_choices'}
291 0 0 if $single
301 0 0 if ($opts{'colour'})