Branch Coverage

blib/lib/Catalyst/View/Email.pm
Criterion Covered Total %
branch 25 58 43.1


line true false branch
213 0 4 if $stash_key eq ''
223 1 0 unless ($transport_class =~ /^Email::Sender::Transport::/)
245 0 1 unless $self->sender->{'mailer'}
248 0 1 unless $email
252 1 0 if ($self->content_type and not $email->{'content_type'})
258 1 0 if $email->{'to'}
260 0 1 if $email->{'cc'}
262 1 0 if $email->{'from'}
265 1 0 if $email->{'subject'}
267 1 0 if $email->{'content_type'}
272 0 1 unless ($parts or $body)
278 0 1 if ($parts and ref $parts eq 'ARRAY') { }
286 1 0 if $email->{'content_type'}
287 0 1 if ($mime{'attributes'} and not $mime{'attributes'}{'charset'} and $self->{'default'}{'charset'})
295 0 1 if $email->{'encoding'}
299 1 0 if ($message) { }
303 0 1 exists $email->{'envelope_from'} ? :
0 1 exists $email->{'envelope_to'} ? :
309 0 1 if not $return
334 1 0 if (exists $attrs->{'content_type'} and defined $attrs->{'content_type'} and $attrs->{'content_type'} ne '') { }
0 0 elsif (defined $default_content_type and $default_content_type ne '') { }
340 0 1 if $c->debug
345 0 0 if $c->debug
351 0 1 if (exists $attrs->{'charset'} and defined $attrs->{'charset'} and $attrs->{'charset'} ne '') { }
0 2 elsif (defined $default_charset and $default_charset ne '') { }
361 0 1 if (exists $attrs->{'encoding'} and defined $attrs->{'encoding'} and $attrs->{'encoding'} ne '') { }
0 2 elsif (defined $default_encoding and $default_encoding ne '') { }
368 0 0 if $c->debug
373 0 0 if $c->debug