Branch Coverage

blib/lib/Authen/Simple/IMAP.pm
Criterion Covered Total %
branch 18 54 33.3


line true false branch
43 1 0 if ($$args{'log'})
47 1 0 if $self->log
50 0 1 if (defined $$args{'timeout'})
53 1 0 if (defined $$args{'imap'}) { }
0 0 elsif ($$args{'protocol'} eq 'IMAPS') { }
0 0 elsif ($$args{'protocol'} eq 'IMAP') { }
0 0 elsif (defined $$args{'protocol'}) { }
54 1 0 if $self->log
72 1 0 if ($is_user_provided_object)
80 0 2 unless defined $$self{'imap_args'}
81 2 0 if ($$self{'user_provided_object'})
92 0 0 if (defined $$args{'timeout'}) { }
98 0 0 if (defined $$self{'imap'}) { }
0 0 elsif ($$self{'protocol'} eq 'IMAPS') { }
0 0 elsif ($$self{'protocol'} eq 'IMAP') { }
99 0 0 if $self->log
106 0 0 if $self->log
115 0 0 if $self->log
142 2 0 if $self->log
146 2 0 if ($self->escape_slash)
155 2 0 if $self->log
157 1 1 if ($self->imap->login($username, $password))
158 1 0 if $self->log
160 0 1 if $self->imap->can('quit')
165 1 0 if $self->imap->errstr
166 1 0 if $self->log
167 0 1 if $self->imap->can('quit')