Branch Coverage

blib/lib/HTTP/MobileAgent/DoCoMo.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
44 4 170 if ($foma_or_comment and $foma_or_comment =~ s/^\((.*)\)$/$1/) { }
17 153 elsif ($foma_or_comment) { }
57 20 154 $self->version eq '2.0' ? :
66 1 156 if $self->{'model'} eq 'SH505i2'
68 105 52 if ($cache)
69 0 105 unless $cache =~ s/^c//
74 5 33 if (/^ser(\w{11})$/)
75 19 14 if (/^(T[CDBJ])$/)
76 5 9 if (/^s(\d+)$/)
77 3 6 if (/^W(\d+)H(\d+)$/)
84 0 17 unless $foma =~ s/^([^\(]+)//
86 1 16 if $1 eq 'MST_v_SH2101V'
88 16 1 if ($foma =~ s/^\((.*?)\)$//)
91 16 5 if /^c(\d+)$/
92 2 3 if /^ser(\w{15})$/
93 2 1 if /^icc(\w{20})$/
94 1 0 if /^(T[CDBJ])$/
95 0 0 if /^W(\d+)H(\d+)$/
106 32 79 if $self->model =~ /$re/
120 9 23 if ($self->is_foma and $model =~ /\d{4}/)
138 1 3 if ($self->{'display_bytes'})