Condition Coverage

blib/lib/WWW/Postmark.pm
Criterion Covered Total %
condition 18 30 60.0


and 3 conditions

line !l l&&!r l&&r condition
186 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'} ||= []
318 1 1 $options ||= 'long'

or 3 conditions

line l !l&&r !l&&!r condition
201 5 1 1 $params{'body'} or $params{'html'}
6 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 ${_}: $!")
407 0 0 0 $errors{$$msg{'ErrorCode'}} || "Unknown Postmark error code $$msg{'ErrorCode'}"