Condition Coverage

blib/lib/EMDIS/ECS.pm
Criterion Covered Total %
condition 6 99 6.0


and 3 conditions

line !l l&&!r l&&r condition
194 0 0 0 $level < $cfg->LOG_LEVEL and not $cfg->ECS_DEBUG
340 0 0 0 $err and not $_[$#_] =~ /Unable to send admin email/iso
365 0 0 0 $seq_num and not $node_id
465 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'}
523 0 0 0 defined $custom_headers and not 'HASH' eq ref $custom_headers
558 0 0 0 $cfg->SMTP_USERNAME and $cfg->SMTP_PASSWORD
637 0 0 0 defined $custom_properties and not 'HASH' eq ref $custom_properties
642 0 0 0 exists $node->{'node_disabled'} and is_yes($node->{'node_disabled'})
726 0 0 0 $send_opts->{'amqp_sslcert'} and $send_opts->{'amqp_sslkey'}
825 0 0 0 not $node->{'amqp_addr_meta'} and is_yes($node->{'amqp_only'})
832 0 0 0 not $node->{'amqp_addr_msg'} and is_yes($node->{'amqp_only'})
839 0 0 0 not $node->{'amqp_addr_doc'} and is_yes($node->{'amqp_only'})
943 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)
951 0 0 0 defined $required_signature and not $result
978 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
992 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)
1025 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1034 0 0 0 defined $required_signature and not $result
1061 0 0 0 defined $encr_out_keyid && 0 < length $encr_out_keyid
1073 0 0 0 defined $encr_out_passphrase && 0 < length $encr_out_passphrase
1299 0 0 0 not defined $pid and $@ =~ /^open2/
1321 0 0 0 $result and $#msgs >= 0

or 3 conditions

line l !l&&r !l&&!r condition
80 17 1 46 $val =~ /^\s*YES\s*$/io or $val =~ /^\s*TRUE\s*$/io
90 14 1 7 $val =~ /^\s*NO\s*$/io or $val =~ /^\s*FALSE\s*$/io
192 0 0 0 not defined $level or $level < 0
0 0 0 not defined $level or $level < 0 or $level > $#EMDIS::ECS::LOG_LEVEL
460 0 0 0 $seq_num || $node->{'encr_meta'} =~ /true/i
528 0 0 0 is_yes($cfg->SMTP_USE_SSL) or is_yes($cfg->SMTP_USE_STARTTLS)
862 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'}