Branch Coverage

blib/lib/Device/Gsm/Sms.pm
Criterion Covered Total %
branch 19 82 23.1


line true false branch
48 0 16 if (exists $opt{'parent'})
61 0 16 unless exists $opt{'header'} and exists $opt{'pdu'}
69 14 2 if ($opt{'header'} =~ /\+CMGL:\s*(\d+),\s*(\d+),\s*(\w*),\s*(\d+)/o) { }
0 2 elsif ($opt{'header'} =~ /\+CDS:\s*(\d+)/o) { }
81 14 0 if ($self->decode(0)) { }
0 0 elsif ($self->decode(2)) { }
102 0 0 if ($self->decode(2)) { }
128 0 0 if (my $t = $self->token('SCTS'))
139 0 0 if (my $t = $self->token('DT'))
150 0 0 if (my $t = $self->token('MR'))
167 0 0 defined $self->{'status'} ? :
193 0 0 if ($header =~ /\+CMGL:\s*(\d+),(\d+),(\d*),(\d+)/)
206 0 0 if ($sca_length == 0) { }
245 0 0 if ($msg{'DCS'} eq '00') { }
0 0 elsif ($msg{'DCS'} eq 'F6') { }
268 0 14 unless $cPdu
283 0 104 unless (defined $token)
291 104 0 if ($token->decode(\$cPdu))
298 16 88 if ($token->name eq 'PDUTYPE')
309 2 14 if ($mti != $type)
329 0 14 if ($udh_parsed == 0 and $udhi == 1)
365 0 0 if (ref $gsm and $storage and $msg_index >= 0) { }
367 0 0 $ok ? :
408 0 0 if ($self->type == 1 or $self->type == 2)
410 0 0 if $t
419 0 0 if ($self->type == 2)
421 0 0 if $t
432 0 0 if ($self->type == 2)
434 0 0 if $t
443 0 0 if ($self->type == 0)
445 0 0 if $t
457 12 0 if $t
465 0 0 if ($self->type == 0)
475 0 0 if ($self->is_udh)
485 0 0 if ($self->is_csms)
495 0 0 if ($self->is_csms)
505 0 0 if ($self->is_csms)
515 0 0 if ($self->is_csms)
522 0 12 unless $token_name
524 12 0 if (exists $self->{'tokens'}{$token_name}) { }
538 2 18 if (@_)