Branch Coverage

blib/lib/Device/LaCrosse/WS23xx/MemoryMap.pm
Criterion Covered Total %
branch 37 46 80.4


line true false branch
125 0 80 if $line =~ /^\s*$/
126 0 80 if $line =~ /^\s*#/
128 0 80 unless $line =~ /^(\S+):(\S+)\s+(\S+)(\s+\[(.*?)\])?\s+(\S.*\S)/
149 0 74 unless (exists $self->{'fields'}{lc $canonical_field})
152 0 0 if (@match == 1)
161 0 74 unless defined $canonical_field
163 0 74 unless exists $self->{'fields'}{lc $canonical_field}
181 17 57 if ($desc =~ s/\bmin(imum)?\b/ /i) { }
20 37 elsif ($desc =~ s/\bmax(imum)?\b/ /i) { }
14 23 elsif ($desc =~ s/\b(High|Low)\s*Alarm\b/ /i) { }
4 19 elsif ($desc =~ s/\bCurrent\b/ /i) { }
195 27 47 if ($desc =~ s/\b(in|out)(doors?)?(\b|$)/ /i)
200 17 57 if ($desc =~ s/\btemp(erature)?\b/ /i) { }
11 46 elsif ($desc =~ s/\bPress(ure)?\b/ /i) { }
25 21 elsif ($desc =~ s/\b(Humidity|Windchill|Dewpoint)\b/ /i) { }
7 14 elsif ($desc =~ s/\b(Rain)\b//i) { }
206 3 8 if ($desc =~ s/\bAbs(olute)?\b/ /i) { }
3 5 elsif ($desc =~ s/\bRel(ative)?\b/ /i) { }
213 1 10 if ($desc =~ s/\bCorrection\b/ /i)
223 6 1 if ($desc =~ s/\b(1|24)(\s*h(ou)?r?)?\b//i) { }
1 0 elsif ($desc =~ s/\btotal\b//i) { }
237 17 57 if ($desc =~ s[\bDate/?Time\b][ ]i)
241 14 60 if ($desc =~ /\S/)