Condition Coverage

blib/lib/WWW/Postmark.pm
Criterion Covered Total %
condition 17 30 56.6


and 3 conditions

line !l l&&!r l&&r condition
187 0 0 7 $params{'from'} and 'Email::Valid'->address($params{'from'})
221 3 0 2 $body =~ /^\/i and $body =~ m[\$]i
247 5 0 1 $params{'attachments'} and ref $params{'attachments'} eq 'ARRAY'

or 2 conditions

line l !l condition
89 0 3 $use_ssl ||= 0
262 1 1 $msg->{'Attachments'} ||= []
321 1 1 $options ||= 'long'

or 3 conditions

line l !l&&r !l&&!r condition
202 5 0 2 $params{'body'} or $params{'html'}
1 0 1 $params{'body'} or $params{'html'} or $params{'text'}
219 1 0 5 $params{'html'} or $params{'text'}
253 2 0 0 $_ || croak("Failed opening attachment ${_}: $!")
410 0 0 0 $errors{$msg->{'ErrorCode'}} || "Unknown Postmark error code $msg->{'ErrorCode'}"