Condition Coverage

blib/lib/Log/Fine/Handle/Email.pm
Criterion Covered Total %
condition 11 53 20.7


and 3 conditions

line !l l&&!r l&&r condition
284 0 1 0 defined $self->{'header_from'} and not $self->_isValid($self->{'header_from'})
316 0 0 1 defined $self->{'subject_formatter'} and ref $self->{'subject_formatter'}
0 0 1 defined $self->{'subject_formatter'} and ref $self->{'subject_formatter'} and UNIVERSAL::can($self->{'subject_formatter'}, 'isa')
0 0 1 defined $self->{'subject_formatter'} and ref $self->{'subject_formatter'} and UNIVERSAL::can($self->{'subject_formatter'}, 'isa') and $self->{'subject_formatter'}->isa('Log::Fine::Formatter')
325 0 0 1 defined $self->{'body_formatter'} and ref $self->{'body_formatter'}
0 0 1 defined $self->{'body_formatter'} and ref $self->{'body_formatter'} and UNIVERSAL::can($self->{'body_formatter'}, 'isa')
0 0 1 defined $self->{'body_formatter'} and ref $self->{'body_formatter'} and UNIVERSAL::can($self->{'body_formatter'}, 'isa') and $self->{'body_formatter'}->isa('Log::Fine::Formatter')
344 0 0 0 ref $envelope->{'to'} eq 'ARRAY' and $self->_isValid($envelope->{'to'})
348 1 0 0 defined $envelope->{'from'} and $envelope->{'from'} =~ /\w/
358 0 0 1 defined $self->{'subject_formatter'} and $self->{'subject_formatter'}->isa('Log::Fine::Formatter')
365 0 0 1 defined $self->{'body_formatter'} and $self->{'body_formatter'}->isa('Log::Fine::Formatter')
382 0 0 0 defined $self->{'_fullHost'} and $self->{'_fullHost'} =~ /\w/
398 0 0 0 defined $self->{'_userName'} and $self->{'_userName'} =~ /\w/

or 2 conditions

line l !l condition
281 0 1 $self->{'envelope'} ||= {}
325 0 0 '{body_formatter} must be a valid Log::Fine::Formatter object : ' . ref($self->{'body_formatter'}) || '{undef}'
365 0 0 '{body_formatter} must be a valid Log::Fine::Formatter object : ' . ref($self->{'body_formatter'}) || '{undef}'
382 0 0 hostname() || '{undef}'
403 0 0 $ENV{'EUID'} || 0
0 0 getpwuid $> || 'nobody'
406 0 0 getlogin || getpwuid $< || 'nobody'