Branch Coverage

lib/Devel/Trepan/Interface/User.pm
Criterion Covered Total %
branch 18 56 32.1


line true false branch
42 0 13 if ($inp and $inp->isa('Devel::Trepan::IO:InputBase')) { }
48 13 0 if ($self->{'input'}{'term_readline'})
49 0 13 if ($self->{'opts'}{'complete'})
62 0 0 unless $self->{'input'}{'readline'} and $self->{'input'}{'readline'}->can('add_history')
65 0 0 if ($self->can('add_history_time'))
74 0 0 if $self->can('WriteHistory')
81 8 0 unless defined $which
82 0 8 unless $self->{'input'}{'readline'}
83 0 8 if ($self->{'input'}{'readline'}->can('where_history'))
85 0 0 unless defined $which
88 8 0 if $self->{'input'}{'readline'}->can('remove_history')
94 0 0 if $self->{'input'}->is_eof
104 9 1 $default ? :
108 0 10 if $self->{'input'}->is_eof
110 2 8 if $response eq ''
114 8 0 if grep /^$response$/, @Devel::Trepan::Util::YN
130 13 0 unless ($self->{'histfile'})
134 0 13 $ENV{'HISTSIZE'} ? :
135 13 0 unless defined $self->{'histsize'}
136 0 13 if (-f $self->{'histfile'})
138 0 0 if $self->{'input'}{'readline'}->can('StifleHistory')
140 0 0 if $self->{'input'}{'readline'}->can('ReadHistory')
165 0 0 if defined $self->{'opts'}{'readline'}
171 0 0 unless defined $prompt
180 0 0 if defined $last
187 0 0 if ($self->want_term_readline) { }
190 0 0 if defined $prompt and $prompt
198 0 13 unless $self->has_completion