Branch Coverage

blib/lib/Metabrik/Client/Imap.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
59 0 0 unless $self->brik_help_set_undef_arg("input", $input)
61 0 0 unless my $parsed = $self->SUPER::parse($input)
69 0 0 unless (defined $user and defined $password and defined $host)
74 0 0 $self->is_imaps_scheme($parsed) ? :
77 0 0 unless (defined $imap)
82 0 0 unless (defined $r)
105 0 0 unless $self->brik_help_run_undef_arg("open", $imap)
114 0 0 unless $self->brik_help_run_undef_arg("open", $imap)
122 0 0 if ($self->as_array)
123 0 0 if ($self->strip_crlf)
139 0 0 unless $self->brik_help_run_undef_arg("open", $imap)
140 0 0 unless $self->brik_help_run_undef_arg("read_next_with_subject", $subject)
145 0 0 unless my $next = $self->read_next
146 0 0 unless my $message = $self->parse($next)
149 0 0 if ($headers->{'Subject'} =~ /$subject/i)
163 0 0 unless $self->brik_help_run_undef_arg("open", $imap)
169 0 0 unless my $next = $self->read_next
170 0 0 unless my $message = $self->parse($next)
174 0 0 if (exists $part->{'filename'} and length $part->{'filename'} and $part->{'filename'} =~ /$regex/)
189 0 0 unless $self->brik_help_run_undef_arg("parse", $message)
191 0 0 unless my $em = "Metabrik::Email::Message"->new_from_brik_init($self)
200 0 0 unless $self->brik_help_run_undef_arg("save_attachments", $message)
202 0 0 unless my $em = "Metabrik::Email::Message"->new_from_brik_init($self)
212 0 0 if (defined $imap)