Branch Coverage

lib/Mojolicious/Plugin/MailException.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
246 1 1 unless ('CODE' eq ref $cb)
248 1 0 if (my $dir = $conf->{'maildir'})
249 0 1 unless -x $dir and -d $dir and -w $dir
255 0 2 unless 'CODE' eq ref $cb
262 0 2 unless 'HASH' eq ref $headers
273 4 1 unless (ref $e and $e->isa('Mojo::Exception'))
282 4 0 if $e->can('inspect')
292 2 4 unless $@
294 1 3 unless ($e)
297 1 0 if $e->can('inspect')
303 1 3 if ref $e->{'local_headers'}
307 0 4 unless eval { do { local $SIG{'CHLD'} = 'IGNORE'; local $SIG{'__DIE__'}; &$cb($mail, $e); 1 } }
326 1 0 if $e->can('inspect')