Condition Coverage

blib/lib/Net/UCP.pm
Criterion Covered Total %
condition 5 195 2.5


and 3 conditions

line !l l&&!r l&&r condition
70 0 0 0 defined $args{'SMSC_ID'} and length $args{'SMSC_ID'}
75 0 0 0 defined $args{'SMSC_PW'} and length $args{'SMSC_PW'}
154 0 0 0 defined $args{'RECIPIENT'} and length $args{'RECIPIENT'}
171 0 0 0 defined $args{'SENDER_TEXT'} and length $args{'SENDER_TEXT'}
175 0 0 0 defined $args{'FLASH'} && $args{'FLASH'} == 1
178 0 0 0 defined $args{'MESSAGE_BINARY'} && defined $args{'MESSAGE_BINARY'}
237 0 0 0 $ret and defined $ret
307 0 0 0 $udh =~ /\d+/ and $type eq 'T'
313 0 0 0 $udh =~ /\d+/ and $type eq 'T'
361 0 0 0 defined $args{'SMSC_HOST'} and length $args{'SMSC_HOST'}
367 0 0 0 defined $args{'SMSC_PORT'} and length $args{'SMSC_PORT'}
382 0 0 0 defined $args{'SENDER_TEXT'} && length $args{'SENDER_TEXT'}
387 0 0 0 defined $args{'SHORT_CODE'} && length $args{'SHORT_CODE'}
418 0 0 0 exists $arg{'timeout'} and $arg{'timeout'} > 0
419 0 0 0 exists $arg{'action'} && ref $arg{'action'} eq 'CODE'
548 0 0 1 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
550 1 0 0 exists $arg{'nmsg'} && !exists($arg{'amsg'})
584 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
687 0 0 1 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
689 1 0 0 exists $arg{'nmsg'} && !exists($arg{'amsg'})
725 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
839 0 0 0 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
841 0 0 0 exists $arg{'nmsg'} && !exists($arg{'amsg'})
897 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
1005 0 0 0 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
1049 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
1150 0 0 0 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
1176 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
1270 0 0 0 $mess{'mt'} and $mess{'mt'} == 2
1271 0 0 0 $mess{'mt'} and $mess{'mt'} == 3
1272 0 0 0 $mess{'mt'} and $mess{'mt'} == 4
1310 0 0 1 exists $$arg{'operation'} and $$arg{'operation'} == 1
0 0 0 exists $$arg{'result'} and $$arg{'result'} == 1
1318 0 0 0 exists $$arg{'nmsg'} && !exists($$arg{'tmsg'})
1413 0 0 0 exists $$arg{'ack'} and $$arg{'ack'} ne ''
0 0 0 exists $$arg{'nack'} and $$arg{'nack'} ne ''
1619 0 0 0 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
1665 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
1727 0 0 0 exists $arg{'operation'} and $arg{'operation'} == 1
0 0 0 exists $arg{'result'} and $arg{'result'} == 1
1775 0 0 0 exists $arg{'ack'} and $arg{'ack'} ne ''
0 0 0 exists $arg{'nack'} and $arg{'nack'} ne ''
1842 0 0 0 exists $opt{'host'} && $opt{'host'} ne ''
0 0 0 exists $opt{'port'} && $opt{'port'} ne ''
1851 0 0 0 exists $opt{'output'} && $opt{'output'} == 1
1855 0 0 0 $opt{'reading_mode'} != 0 and $opt{'reading_mode'} != 1
1862 0 0 0 exists $opt{'max_len'} && $opt{'max_len'} >= 1
1893 0 0 0 exists $opt{'action'} and ref $opt{'action'} eq 'CODE'
1895 0 0 0 defined $resp_be and $resp_be ne ''
1897 0 0 0 exists $opt{'sending'} and ref $opt{'sending'} eq 'CODE'
1899 0 0 0 defined $next_ucp_message and $next_ucp_message ne ''
1958 0 0 0 $@ and $@ ne "alarm\n"

or 3 conditions

line l !l&&r !l&&!r condition
1938 0 0 0 $enclosed || do { $errtxt = 'Failed to print to SMSC socket. Remote end closed?'; warn $errtxt if $$self{'WARN'}; return defined wantarray ? wantarray ? (undef, 0, $errtxt) : undef : undef }