Branch Coverage

blib/lib/Device/Gsm/Sms.pm
Criterion Covered Total %
branch 17 74 22.9


line true false branch
50 0 6 if (exists $opt{'parent'})
63 0 6 unless exists $opt{'header'} and exists $opt{'pdu'}
71 6 0 if ($opt{'header'} =~ /\+CMGL:\s*(\d+),\s*(\d+),\s*(\w*),\s*(\d+)/o) { }
83 6 0 if ($self->decode(0)) { }
0 0 elsif ($self->decode(2)) { }
112 0 0 if (my $t = $self->token('SCTS'))
123 0 0 if (my $t = $self->token('DT'))
134 0 0 if (my $t = $self->token('MR'))
151 0 0 defined $$self{'status'} ? :
177 0 0 if ($header =~ /\+CMGL:\s*(\d+),(\d+),(\d*),(\d+)/)
190 0 0 if ($sca_length == 0) { }
229 0 0 if ($msg{'DCS'} eq '00') { }
0 0 elsif ($msg{'DCS'} eq 'F6') { }
252 0 6 unless $cPdu
267 0 48 unless (defined $token)
275 48 0 if ($token->decode(\$cPdu))
282 8 40 if ($token->name eq 'PDUTYPE')
293 2 6 if ($mti != $type)
313 0 6 if ($udh_parsed == 0 and $udhi == 1)
349 0 0 if (ref $gsm and $storage and $msg_index >= 0) { }
351 0 0 $ok ? :
392 0 0 if ($self->type == 1 or $self->type == 2)
394 0 0 if $t
404 0 0 if ($self->type == 2)
406 0 0 if $t
415 0 0 if ($self->type == 0)
417 0 0 if $t
429 4 0 if $t
437 0 0 if ($self->type == 0)
447 0 0 if ($self->is_udh)
457 0 0 if ($self->is_csms)
467 0 0 if ($self->is_csms)
477 0 0 if ($self->is_csms)
487 0 0 if ($self->is_csms)
494 0 4 unless $token_name
496 4 0 if (exists $$self{'tokens'}{$token_name}) { }
510 2 10 if (@_)