Branch Coverage

blib/lib/App/Bulkmail.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
120 0 0 unless (ref $self->template eq 'SCALAR')
127 0 0 unless (ref $self->recipients)
131 0 0 if ($file =~ /\.yaml$/i) { }
0 0 elsif ($file =~ /\.json$/i) { }
0 0 elsif ($file =~ /\.csv$/i) { }
144 0 0 unless open my $fh, '<', $file
150 0 0 unless $csv->eof
157 0 0 if (ref $data eq 'HASH')
168 0 0 unless (defined $self->progress or $self->quiet or $self->verbose or $self->dump)
171 0 0 if require Term::ProgressBar
182 0 0 unless (blessed $self)
194 0 0 if ($verbose or $dump)
204 0 0 if $verbose
208 0 0 unless ($tt->process($template, $recipient, \$mail))
213 0 0 if $dump
215 0 0 if $dryrun
218 0 0 unless (open my $sendmail, '| /usr/lib/sendmail -t')
226 0 0 unless (close $sendmail)
231 0 0 if $progress
234 0 0 if $progress