Branch Coverage

blib/lib/Mail/MtPolicyd/Request.pm
Criterion Covered Total %
branch 15 32 46.8


line true false branch
56 0 11 if (not defined $value or $value eq '')
59 10 1 if (scalar @params == 2) { }
1 0 elsif (scalar @params == 1) { }
65 6 5 if ($scope eq 'session' or $scope eq 's') { }
5 0 elsif ($scope eq 'request' or $scope eq 'r') { }
66 0 6 unless (defined $self->session)
87 0 0 if ($line eq '')
89 0 0 unless (defined $value)
94 0 0 if ($fh->error)
97 0 0 unless (defined $line or $complete)
100 0 0 unless ($complete)
116 16 1 unless (defined $session and $self->use_caching)
119 1 0 unless (defined $session->{$key})
131 44 3 unless (defined $session and $self->use_caching)
134 0 3 if (defined $session->{$key})
147 0 6 if (not defined $a->{$field} or $a->{$field} eq '' or $a->{$field} =~ /^\s+$/)