Branch Coverage

blib/lib/Aviation/Report.pm
Criterion Covered Total %
branch 107 176 60.8


line true false branch
56 0 0 if $style
64 0 0 if (($element, $value) = split(/ /, $token, 2))
65 0 0 if (exists $abb_pirep{$element}) { }
69 0 0 if ($element =~ /^(\d{3})$/) { }
72 0 0 if (/^(\d{3})$/) { }
0 0 elsif (/^([A-Z]+)$/) { }
76 0 0 if (exists $abb{$1}) { }
94 0 0 if ($element eq 'IC' or $element eq 'TB') { }
0 0 elsif ($element eq 'OV' and $value =~ /^(.*?) (\d{3})(\d{3})$/) { }
0 0 elsif ($element eq 'SK') { }
0 0 elsif ($value =~ /^(\d{3})(\d{3})$/) { }
0 0 elsif ($value =~ /^(\d{2})(\d{2})$/) { }
0 0 elsif ($value =~ /^(\d{3})$/) { }
95 0 0 if (exists $abb_pirep{$value}) { }
107 0 0 if (/^(\d{3})$/) { }
0 0 elsif (/^([A-Z]+)$/) { }
111 0 0 if (exists $abb{$1}) { }
135 0 0 if $element eq 'TA'
136 0 0 if $element eq 'SK'
147 0 7 if $style
161 0 153 if $style
164 6 147 if ($intensity eq '-') { }
1 146 elsif ($intensity eq '+') { }
171 7 146 if ($intensity eq 'light' or $intensity eq 'heavy')
177 7 146 if ($id eq '' and $token =~ /^[A-Z]{4}$/) { }
7 139 elsif ($token =~ /^(\d{2})(\d{2})(\d{2})Z$/) { }
2 137 elsif ($token =~ /^(\d{2})(\d{2})(\d{2})$/) { }
1 136 elsif ($token =~ /^00000KT$/) { }
1 135 elsif ($token =~ /^VRB(\d{2})KT$/) { }
0 135 elsif ($token =~ /^(\d{3})V(\d{3})$/) { }
11 124 elsif ($token =~ /^(\d{3})(\d{2})(G?)(\d+)?KT$/) { }
3 121 elsif ($token =~ /^(\d{1,2})$/) { }
11 110 elsif ($token =~ /^(P?)(\d+)SM$/) { }
2 108 elsif ($token =~ m[^(\d+)/(\d+)SM$]) { }
1 107 elsif ($token =~ m[^R(\d{2})(L|C|R)/(M|P)?(\d+)FT$]) { }
1 106 elsif ($token =~ /^HZ$/) { }
5 101 elsif ($token =~ m[^(M?)(\d{2,3})/(M?)(\d{2,3})$]) { }
5 96 elsif ($token =~ /^A(\d{2})(\d{2})$/) { }
0 96 elsif ($token =~ /^Q(\d{3})(\d)$/) { }
3 93 elsif ($token =~ /^AO(1|2)$/) { }
2 91 elsif ($token =~ /^P(\d{4})$/) { }
1 90 elsif ($token =~ m[^(\d{3})(\d{2})/(\d{2})$]) { }
2 88 elsif ($token =~ /^1(0|1)(\d{3})$/) { }
2 86 elsif ($token =~ /^2(0|1)(\d{3})$/) { }
0 86 elsif ($token =~ m[^4/(\d{3})$]) { }
2 84 elsif ($token =~ /^5(\d)(\d{3})$/) { }
2 82 elsif ($token =~ /^6(\d{4})$/) { }
0 82 elsif ($token =~ /^7(\d{4})$/) { }
2 80 elsif ($token =~ m[^8/(\d)(\d)(\d)$]) { }
0 80 elsif ($token =~ /^98(\d{3})$/) { }
0 80 elsif ($token =~ /^933(\d{3})$/) { }
3 77 elsif ($token =~ /^SLP(\d{3})$/) { }
6 71 elsif ($token =~ /^FM(\d{2})(\d{2})$/) { }
1 70 elsif ($token =~ /^PROB(\d{2})$/) { }
1 69 elsif ($token =~ m[^WS(\d{3})/(\d{3})(\d{2,3})KT$]) { }
0 69 elsif ($token =~ /^4(\d)(\d{3})(\d)(\d{3})$/) { }
3 66 elsif ($token =~ /^T(\d)(\d{3})(\d)(\d{3})$/) { }
1 65 elsif ($token =~ /^([A-Z]{2})B(\d{2})$/) { }
3 62 elsif ($token =~ /^(\d{2})(\d{2})$/) { }
0 62 elsif (exists $abb{$token}) { }
18 44 elsif ($token =~ /^([A-Z]{3})([0-9]+)(CB|TCU)?(VV)?(\d{3})?$/) { }
43 1 elsif ($token =~ /^([A-Z]{2,})$/) { }
199 4 7 if $3 eq 'G'
203 3 0 if ($token = shift @tokens)
204 0 3 if ($token =~ m[^(\d+/\d+)$])
210 6 5 $1 eq 'P' ? :
216 0 1 $3 eq 'M' ? :
0 1 $3 eq 'M' ? :
223 3 2 $1 ? :
4 1 $3 ? :
233 0 3 $1 eq '01' ? :
242 2 0 $1 ? :
245 2 0 $1 ? :
252 0 2 if ($1 eq '4') { }
0 2 elsif ($1 gt '4') { }
279 3 0 $1 < 700 ? :
291 0 0 $1 ? :
0 0 $3 ? :
294 2 1 $1 ? :
3 0 $3 ? :
297 0 1 if (exists $abb{$1}) { }
312 18 0 if ($1 eq 'FEW' or $1 eq 'SCT' or $1 eq 'BKN' or $1 eq 'OVC') { }
0 0 elsif (exists $abb{$1}) { }
322 1 17 if ($3 eq 'CB') { }
0 17 elsif ($3 eq 'TCU') { }
329 1 17 if ($4 eq 'VV')
342 64 89 if ($i == 2)
343 0 64 if (exists $abb{$x}) { }