Branch Coverage

blib/lib/HTTP/MobileAgent/DoCoMo.pm
Criterion Covered Total %
branch 41 44 93.1


line true false branch
57 4 181 if ($foma_or_comment and $foma_or_comment =~ s/^\((.*)\)$/$1/) { }
31 150 elsif ($foma_or_comment) { }
71 16 169 $self->is_foma && !($self->html_version && $self->html_version == 3) ? :
83 1 153 if $$self{'model'} eq 'SH505i2'
85 105 49 if ($cache)
86 0 105 unless $cache =~ s/^c//
91 5 32 if (/^ser(\w{11})$/)
92 19 13 if (/^(T[CDBJ])$/)
93 5 8 if (/^s(\d+)$/)
94 2 6 if (/^W(\d+)H(\d+)$/)
101 0 31 unless $foma =~ s/^([^\(]+)//
103 1 30 if $1 eq 'MST_v_SH2101V'
105 28 3 if ($foma =~ s/^\((.*?)\)//)
108 28 29 if /^c(\d+)$/
109 2 27 if /^ser(\w{15})$/
110 2 25 if /^icc(\w{20})$/
111 13 12 if /^(T[CDBJ])$/
112 12 0 if /^W(\d+)H(\d+)$/
123 85 395 if $self->model =~ /$re/
137 13 23 if ($self->is_foma and $model =~ /(?:\d{4}|\w\d{2}\w\d?)/)
155 3 2 if ($$self{'display_bytes'})
180 2 3 $self->is_foma && $self->cache_size >= 500 ? :