Branch Coverage

blib/lib/Net/Doveadm.pm
Criterion Covered Total %
branch 34 52 65.3


line true false branch
145 0 3 if ($opts{'verbosity'})
146 0 0 if ($opts{'verbosity'} eq '1') { }
0 0 elsif ($opts{'verbosity'} eq '2') { }
159 0 3 unless (defined $opts{'username'})
165 3 0 unless ($self->{'_handshake_done'})
166 3 0 unless $self->_do_handshake
178 0 12 if ($piece =~ tr/\t\n//)
202 23 3 unless ($self->{'_handshake_done'})
203 20 3 unless $self->_do_handshake
210 0 0 unless (@{$self->{'_requests'};} or $self->{'_sent_requests'})
214 3 3 unless $self->{'_line1'} ||= $self->_read_line
216 0 3 unless $self->{'_line2'} ||= $self->_read_line
222 0 3 if ($line2 ne '+')
245 3 23 unless ($self->{'_sent_hello'})
251 19 4 unless $self->{'_received_hello'} ||= $self->_read_line
253 2 2 if ($self->{'_received_hello'} eq '+') { }
2 0 elsif ($self->{'_received_hello'} eq '-') { }
257 0 4 if ($$self{"_$key"})
264 1 1 unless ($self->{'_authn_sent'})
272 0 1 unless $self->{'_received_authn'} ||= $self->_read_line
274 1 0 if ($self->{'_received_authn'} eq '+') { }
290 0 2 unless (length $$self{"_$key"})
307 3 4 if $DEBUG
320 10 22 if $$line_sr
322 5 27 if ($DEBUG)
323 4 1 if ($$line_sr) { }