Branch Coverage

blib/lib/Net/Doveadm.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
134 3 0 if ($opts{'flags'})
136 6 0 if (my $chr = 'Net::Doveadm'->can("_flag_$flag")) { }
149 3 0 unless ($self->{'_handshake_done'})
150 3 0 unless $self->_do_handshake
162 0 12 if ($piece =~ tr/\t\n//)
186 23 3 unless ($self->{'_handshake_done'})
187 20 3 unless $self->_do_handshake
194 0 0 unless (@{$self->{'_requests'};} or $self->{'_sent_requests'})
198 3 3 unless $self->{'_line1'} ||= $self->_read_line
200 0 3 unless $self->{'_line2'} ||= $self->_read_line
207 0 3 if ($line2 ne '+')
230 3 23 unless ($self->{'_sent_hello'})
236 19 4 unless $self->{'_received_hello'} ||= $self->_read_line
238 2 2 if ($self->{'_received_hello'} eq "+$LF") { }
2 0 elsif ($self->{'_received_hello'} eq "-$LF") { }
242 0 4 if ($$self{"_$key"})
249 1 1 unless ($self->{'_authn_sent'})
257 0 1 unless $self->{'_received_authn'} ||= $self->_read_line
259 1 0 if ($self->{'_received_authn'} eq "+$LF") { }
275 0 2 unless (length $$self{"_$key"})
292 3 4 if $DEBUG
304 5 27 if ($DEBUG)
305 4 1 if ($$line_sr) { }