Branch Coverage

blib/lib/Catalyst/View/Email.pm
Criterion Covered Total %
branch 21 46 45.6


line true false branch
200 0 8 if $stash_key eq ''
210 2 0 unless ($transport_class =~ /^Email::Sender::Transport::/)
232 0 2 unless $self->sender->{'mailer'}
235 0 2 unless $email
239 2 0 if ($self->content_type and not $email->{'content_type'})
245 2 0 if $email->{'to'}
247 0 2 if $email->{'cc'}
249 0 2 if $email->{'bcc'}
251 2 0 if $email->{'from'}
254 2 0 if $email->{'subject'}
256 2 0 if $email->{'content_type'}
261 0 2 unless ($parts or $body)
267 0 2 if ($parts and ref $parts eq 'ARRAY') { }
275 2 0 if $email->{'content_type'}
276 0 2 if ($mime{'attributes'} and not $mime{'attributes'}{'charset'} and $self->{'default'}{'charset'})
285 2 0 if ($message) { }
290 0 2 if not $return
314 2 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 '') { }
320 0 2 if $c->debug
325 0 0 if $c->debug
331 0 2 if (exists $attrs->{'charset'} and defined $attrs->{'charset'} and $attrs->{'charset'} ne '') { }
0 4 elsif (defined $default_charset and $default_charset ne '') { }