Condition Coverage

blib/lib/EMDIS/ECS.pm
Criterion Covered Total %
condition 6 102 5.8


and 3 conditions

line !l l&&!r l&&r condition
196 0 0 0 $level < $cfg->LOG_LEVEL and not $cfg->ECS_DEBUG
363 0 0 0 $err and not $_[$#_] =~ /Unable to send admin email/iso
388 0 0 0 $seq_num and not $node_id
488 0 0 0 is_yes($cfg->ENABLE_AMQP) and exists $node->{'amqp_addr_meta'}
0 0 0 is_yes($cfg->ENABLE_AMQP) and exists $node->{'amqp_addr_meta'} and $node->{'amqp_addr_meta'}
546 0 0 0 defined $custom_headers and not "HASH" eq ref $custom_headers
622 0 0 0 $cfg->SMTP_USERNAME and $cfg->SMTP_PASSWORD
705 0 0 0 defined $custom_properties and not "HASH" eq ref $custom_properties
710 0 0 0 exists $node->{'node_disabled'} and is_yes($node->{'node_disabled'})
794 0 0 0 $send_opts->{'amqp_sslcert'} and $send_opts->{'amqp_sslkey'}
893 0 0 0 not $node->{'amqp_addr_meta'} and is_yes($node->{'amqp_only'})
900 0 0 0 not $node->{'amqp_addr_doc'} and is_yes($node->{'amqp_only'})
907 0 0 0 not $node->{'amqp_addr_msg'} and is_yes($node->{'amqp_only'})
1011 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
0 0 0 defined $cfg->GPG_PASSPHRASE && (0 < length $cfg->GPG_PASSPHRASE ? $cfg->GPG_PASSPHRASE : undef)
1019 0 0 0 defined $required_signature and not $result
1046 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
1060 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
0 0 0 defined $cfg->GPG_PASSPHRASE && (0 < length $cfg->GPG_PASSPHRASE ? $cfg->GPG_PASSPHRASE : undef)
1093 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1103 0 0 0 defined $required_signature and not $result
1130 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
1142 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1375 0 0 0 not defined $pid and $@ =~ /^open2/
1397 0 0 0 $result and $#msgs >= 0

or 3 conditions

line l !l&&r !l&&!r condition
82 23 1 71 $val =~ /^\s*YES\s*$/io or $val =~ /^\s*TRUE\s*$/io
92 24 1 7 $val =~ /^\s*NO\s*$/io or $val =~ /^\s*FALSE\s*$/io
194 0 0 0 not defined $level or $level < 0
0 0 0 not defined $level or $level < 0 or $level > $#EMDIS::ECS::LOG_LEVEL
483 0 0 0 $seq_num || $node->{'encr_meta'} =~ /true/i
551 0 0 0 is_yes($cfg->SMTP_USE_SSL) or is_yes($cfg->SMTP_USE_STARTTLS)
582 0 0 0 is_yes($EMDIS::ECS::ECS_CFG->SMTP_USE_SSL) or is_yes($EMDIS::ECS::ECS_CFG->SMTP_USE_STARTTLS)
930 0 0 0 $node->{'amqp_addr_meta'} or $node->{'amqp_addr_msg'}
0 0 0 $node->{'amqp_addr_meta'} or $node->{'amqp_addr_msg'} or $node->{'amqp_addr_doc'}