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
371 0 0 0 $err and not $_[$#_] =~ /Unable to send admin email/iso
396 0 0 0 $seq_num and not $node_id
496 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'}
554 0 0 0 defined $custom_headers and not "HASH" eq ref $custom_headers
630 0 0 0 $cfg->SMTP_USERNAME and $cfg->SMTP_PASSWORD
713 0 0 0 defined $custom_properties and not "HASH" eq ref $custom_properties
718 0 0 0 exists $node->{'node_disabled'} and is_yes($node->{'node_disabled'})
802 0 0 0 $send_opts->{'amqp_sslcert'} and $send_opts->{'amqp_sslkey'}
901 0 0 0 not $node->{'amqp_addr_meta'} and is_yes($node->{'amqp_only'})
908 0 0 0 not $node->{'amqp_addr_doc'} and is_yes($node->{'amqp_only'})
915 0 0 0 not $node->{'amqp_addr_msg'} and is_yes($node->{'amqp_only'})
1019 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)
1027 0 0 0 defined $required_signature and not $result
1054 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
1068 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)
1101 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1111 0 0 0 defined $required_signature and not $result
1138 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
1150 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1383 0 0 0 not defined $pid and $@ =~ /^open2/
1405 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
491 0 0 0 $seq_num || $node->{'encr_meta'} =~ /true/i
559 0 0 0 is_yes($cfg->SMTP_USE_SSL) or is_yes($cfg->SMTP_USE_STARTTLS)
590 0 0 0 is_yes($EMDIS::ECS::ECS_CFG->SMTP_USE_SSL) or is_yes($EMDIS::ECS::ECS_CFG->SMTP_USE_STARTTLS)
938 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'}