Branch Coverage

blib/lib/Mail/Bulkmail/Server.pm
Criterion Covered Total %
branch 19 106 17.9


line true false branch
493 0 0 if $self->envelope_limit and $self->_sent_messages_this_envelope >= $self->envelope_limit
515 0 3 if ($self->max_messages_while_awake and $self->_sent_messages_while_awake >= $self->max_messages_while_awake)
516 0 0 if $self->sleep_length
520 0 3 if ($self->max_messages and $self->_sent_messages >= $self->max_messages) { }
0 3 elsif ($self->max_messages_per_connection and $self->_sent_messages_this_connection >= $self->max_messages_per_connection) { }
0 3 elsif ($self->max_messages_per_robin and $self->_sent_messages_this_robin >= $self->max_messages_per_robin) { }
564 0 2 if $self->max_connection_attempts
599 0 0 if $self->connected
602 0 0 unless ($self->Tries)
608 0 0 unless ($self->Domain)
613 0 0 unless $self->_not_worthless > 0
620 0 0 if ($s_tries < 0) { }
630 0 0 if ($c_tries < 0) { }
632 0 0 if $c_tries < 0
640 0 0 if $self->time_out
649 0 0 if (not $response or $response =~ /^[45]/)
663 0 0 if ($self->CONVERSATION)
669 0 0 if (not $response or $response =~ /^[45]/) { }
678 0 0 if ($self->CONVERSATION)
683 0 0 if (not $response or $response =~ /^[45]/)
696 0 0 if ($self->CONVERSATION)
700 0 0 if not $r or $r =~ /^[45]/
705 0 0 if $esmtp_option
708 0 0 if $r =~ /^\d\d\d /
719 0 0 if ($@)
753 0 0 unless $self->connected
755 0 0 unless $quietly
756 0 0 unless $quietly
758 0 0 if (my $socket = $self->socket)
804 0 12 unless ($self->connected)
805 0 0 unless $self->connect
813 0 12 unless (fileno $bulk)
818 0 12 unless (print $bulk $talk)
824 2 10 if length $talk > length $short_talk
826 0 12 if ($self->CONVERSATION)
840 0 12 if $self->time_out
846 0 12 if ($self->CONVERSATION)
851 0 12 if (not $r or $r =~ /^5/) { }
0 12 elsif ($r and $r =~ /^4/) { }
0 12 elsif ($r and $r =~ /^221/) { }
861 0 0 if ($next_attempts > 0) { }
873 0 0 if ($talk ne 'quit') { }
888 12 0 if $r =~ /^\d\d\d / or $r =~ /^\d\d\d$/
900 0 12 if ($@)
911 1 0 if $self->connected
962 0 0 if ($_[0] and not ref $_[0]) { }
967 0 0 unless $class->isa_path
968 0 0 if ($$master_conf{$pkg}{'server_file'})
982 0 0 unless $class->isa_path
988 0 0 unless defined $$conf{$class}{$attribute}
991 0 0 ref $$conf{$class}{$attribute} ? :
1002 0 0 if $$data{$attribute} and @{$$data{$attribute};}
1012 0 0 if (@_)