Condition Coverage

blib/lib/CGI/FormBuilder/Mail/FormatMultiPart.pm
Criterion Covered Total %
condition 8 42 19.0


and 3 conditions

line !l l&&!r l&&r condition
34 1 10 0 $form and $form->isa('CGI::FormBuilder')
44 1 3 0 $to and $from
1 2 0 $to and $from and $smtp
66 0 0 0 defined $skipfields and ref $skipfields ne 'ARRAY'
211 0 0 0 $fmt and ref $fmt ne 'HASH'
421 0 0 0 exists $ENV{$_} && defined $ENV{$_}

or 3 conditions

line l !l&&r !l&&!r condition
47 0 0 1 $smtp eq 'localhost' or $smtp =~ / \A $CGI::FormBuilder::Mail::FormatMultiPart::RE{'net'}{'domain'}{-'nospace'} \z /msx
0 0 1 $smtp eq 'localhost' or $smtp =~ / \A $CGI::FormBuilder::Mail::FormatMultiPart::RE{'net'}{'domain'}{-'nospace'} \z /msx or $smtp =~ / \A $CGI::FormBuilder::Mail::FormatMultiPart::RE{'net'}{'IPv4'} \z /msx
60 0 0 0 ref $format or not grep({$_ eq $format;} 'plain', 'html', 'both')
66 0 0 0 $skip or defined $skipfields and ref $skipfields ne 'ARRAY'
74 0 0 0 $subject ||= sprintf($$form{'messages'}->mail_results_subject, $form->title)
110 0 0 0 $format eq 'plain' or $format eq 'both'
116 0 0 0 $format eq 'html' or $format eq 'both'
128 0 0 0 $CGI::FormBuilder::Mail::FormatMultiPart::EVAL_ERROR or not $success