blib/lib/Geo/METAR/Deduced.pm

filter: Statementstmt 100% 195 / 195 Branchbran 95.8% 46 / 48 Conditioncond 100% 12 / 12 MC/DCmcdc 100% 8 / 8 Subroutinesub 100% 39 / 39 Podpod 100% 18 / 18 totaltotal 99.3% 318 / 320 CC 31 SCAR 11.9
CC
31
Cov
99%
ceiling
8.0
flight_rule
7.0
__ANON__
5.0
CRAP 3.3
↑ Summary
1 # -*- cperl; cperl-indent-level: 4 -*-
2 # Copyright (C) 2020-2021, Roland van Ipenburg
3 package Geo::METAR::Deduced v1.0.4;
4 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use Geo::METAR;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 7 extends 'Geo::METAR';
8  
9 #use Log::Log4perl qw(:resurrect :easy get_logger);
10  
11 7 ▶use Class::Measure::Scientific::FX_992vb;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use Geo::ICAO qw( :all );
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use Set::Scalar;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 ###l4p use Data::Dumper;
15  
16 7 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 7 ▶use 5.016000;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 7 ▶use English qw( -no_match_vars );
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 7 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 ## no critic (ProhibitCallsToUnexportedSubs)
23 7 Readonly::Scalar my $ICAO_MAX_CEILING => 200;
24 7 Readonly::Scalar my $HECTO => 100;
25 7 Readonly::Scalar my $INF => q{inf};
26 7 Readonly::Scalar my $METER => q{m};
27 7 Readonly::Scalar my $FT => q{ft};
28 7 Readonly::Scalar my $MI => q{mile};
29 7 Readonly::Scalar my $PA => q{pa};
30 7 Readonly::Scalar my $INHG => q{inhg};
31 7 Readonly::Scalar my $CELSIUS => q{C};
32 7 Readonly::Scalar my $KNOTS => q{kn};
33 7 Readonly::Scalar my $DEG => q{deg};
34 7 Readonly::Scalar my $VFR => 3;
35 7 Readonly::Scalar my $MVFR => 2;
36 7 Readonly::Scalar my $IFR => 1;
37 7 Readonly::Scalar my $LIFR => 0;
38 7 Readonly::Scalar my $HG => 33.863886;
39 7 Readonly::Scalar my $AVERAGE => 2;
40 7 Readonly::Scalar my $MINUS => q{-};
41 7 Readonly::Scalar my $DEFAULT_RULES => q{ICAO};
42  
43 7 Readonly::Hash my %VIS_MIN => (
44 'VFR' => 5,
45 'MVFR' => 3,
46 'IFR' => 1,
47 );
48 7 Readonly::Hash my %CEIL_MIN => (
49 'VFR' => 3000,
50 'MVFR' => 1000,
51 'IFR' => 500,
52 );
53  
54 # Re-use the %_weather_types lookup table from Geo::METAR:
55 7 Readonly::Hash my %WX => (
56 'MI' => q{shallow},
57 'PI' => q{partial},
58 'BC' => q{patches},
59 'BL' => q{blowing},
60 'SH' => q{shower(s)},
61 'TS' => q{thunderstorm},
62 'FZ' => q{freezing},
63  
64 'DZ' => q{drizzle},
65 'RA' => q{rain},
66 'SN' => q{snow},
67 'SG' => q{snow grains},
68 'IC' => q{ice crystals},
69 'PE' => q{ice pellets},
70 'GR' => q{hail},
71 'GS' => q{small hail/snow pellets},
72 'UP' => q{unknown precip},
73  
74 'BR' => q{mist},
75 'FG' => q{fog},
76 'PRFG' => q{fog banks}, # officially PR is a modifier of FG
77 'FU' => q{smoke},
78 'VA' => q{volcanic ash},
79 'DU' => q{dust},
80 'SA' => q{sand},
81 'HZ' => q{haze},
82 'PY' => q{spray},
83  
84 'PO' => q{dust/sand whirls},
85 'SQ' => q{squalls},
86 'FC' => q{funnel cloud(tornado/waterspout)},
87 'SS' => q{sand storm},
88 'DS' => q{dust storm},
89  
90 );
91 7 Readonly::Hash my %RULES => (
92 'US' => q{USA},
93 'UK' => q{United Kingdom},
94 );
95 7 Readonly::Hash my %LOG => (
96 'RESET' => q{Reset properties for population from new METAR string '%s'},
97 'RESET_PROP' => q{Resetting property '%s' to '%s'},
98 'RULES_CHANGED' => q{Rules changed to '%s' based on ICAO '%s'},
99 'INTERSECTION' => q{Overlapping rules for ICAO code '%s'},
100 );
101 ## use critic
102  
103 ## no critic qw(ProhibitCommentedOutCode)
104 ###l4p Log::Log4perl->easy_init($ERROR);
105 ###l4p my $log = get_logger();
106 ## use critic
107  
108 7 my %rules = ();
109  
110 133 ▶sub _len {
Subroutine _len: called CC=1 SCAR=0.0
111 133 my ( $amount, $unit ) = @_;
112 133 return Class::Measure::Scientific::FX_992vb->length( $amount + 0, $unit );
113 }
114  
115 7 my %vis_min = ();
116 7 for my $k ( keys %VIS_MIN ) {
117 21 $vis_min{$k} = _len( $VIS_MIN{$k}, $MI );
118 }
119  
120 7 my %ceil_min = ();
121 7 for my $k ( keys %CEIL_MIN ) {
122 21 $ceil_min{$k} = _len( $CEIL_MIN{$k}, $FT );
123 }
124  
125 7 my $combined = Set::Scalar->new;
126 7 for my $k ( keys %RULES ) {
127 ## no critic (ProhibitCallsToUnexportedSubs)
128 14 $rules{$k} = Set::Scalar->new( Geo::ICAO::country2code( $RULES{$k} ) );
129 ## use critic
130 14 $combined->insert( $rules{$k}->members );
131 }
132 7 ▶if ( !$combined->is_universal ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($combined->is_universal) 0 7 7
133 ###l4p $log->warn( sprintf $LOG{'INTERSECTING'},
134 ###l4p $combined->difference( $combined->universe ) );
135 }
136  
137 7 has 'rules' => ( 'isa' => 'Str', 'is' => 'rw', 'default' => $DEFAULT_RULES );
138  
139 40 ▶around 'metar' => sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
140 40 my $orig = shift;
141 40 my $self = shift;
142 40 my $args = shift;
143 40 ▶ if ( defined $args ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $args) 40 0 40
144 40 $args =~ tr{\n}{ };
145  
146 # Reset the object when a new METAR string is loaded because the parent
147 # doesn't do that for us:
148 40 my $PRISTINE = Geo::METAR->new();
149 ###l4p $log->debug( sprintf $LOG{'RESET'}, $args );
150 40 for my $k ( keys %{$PRISTINE} ) {
151 ###l4p $log->trace( sprintf $LOG{'RESET_PROP'},
152 ###l4p $k, Data::Dumper::Dumper( ${$PRISTINE}{$k} ) );
153 2080 $self->{$k} = ${$PRISTINE}{$k};
154 }
155 ###l4p $log->debug( join q{,}, @{ $self->{'sky'} } );
156 }
157 40 return $self->$orig($args);
158 7 };
159  
160 40 ▶after 'metar' => sub {
Subroutine __ANON__: called CC=4 SCAR=13.9
161 40 my $self = shift;
162 40 $self->rules($DEFAULT_RULES);
163 40 for my $k ( keys %rules ) {
164 80 ▶ while ( defined( my $code = $rules{$k}->each ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $code = $rules{$k}->each)) 80 80 160
165 80 ▶ if ( 0 == rindex $self->{'SITE'}, $code, 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if (0 == rindex($self->{"SITE"}, $code, 0)) 24 56 80
166 ###l4p $log->debug( sprintf $LOG{'RULES_CHANGED'},
167 ###l4p $k, $self->{'SITE'} );
168 24 $self->rules($k);
169 }
170 }
171 }
172 7 };
173  
174 2 ▶sub date {
Subroutine date: called CC=1 SCAR=0.0
Pod documented
175 2 my $self = shift;
176 2 return $self->{'DATE'} + 0;
177 }
178  
179 ## no critic (ProhibitBuiltinHomonyms)
180 1 ▶sub time {
Subroutine time: called CC=1 SCAR=0.0
Pod documented
181 ## use critic
182 1 my $self = shift;
183 1 return $self->{'TIME'};
184 }
185  
186 1 ▶sub mode {
Subroutine mode: called CC=1 SCAR=0.0
Pod documented
187 1 my $self = shift;
188 1 return $self->{'modifier'};
189 }
190  
191 2 ▶sub wind_dir {
Subroutine wind_dir: called CC=1 SCAR=0.0
Pod documented
192 2 my $self = shift;
193 return Class::Measure::Scientific::FX_992vb->angle(
194 2 $self->{'WIND_DIR_DEG'} + 0, $DEG );
195 }
196  
197 1 ▶sub wind_dir_eng {
Subroutine wind_dir_eng: called CC=1 SCAR=0.0
Pod documented
198 1 my $self = shift;
199 1 return $self->{'WIND_DIR_ENG'};
200 }
201  
202 1 ▶sub wind_dir_abb {
Subroutine wind_dir_abb: called CC=1 SCAR=0.0
Pod documented
203 1 my $self = shift;
204 1 return $self->{'WIND_DIR_ABB'};
205 }
206  
207 3 ▶sub wind_var {
Subroutine wind_var: called CC=2 SCAR=6.9
Pod documented
208 3 my $self = shift;
209 3 ▶ return defined $self->{'WIND_VAR'} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'WIND_VAR'} ? : 1 2 3
210 }
211  
212 3 ▶sub wind_low {
Subroutine wind_low: called CC=2 SCAR=6.9
Pod documented
213 3 my $self = shift;
214 return
215 defined $self->{'WIND_VAR_1'}
216 3 ▶ ? Class::Measure::Scientific::FX_992vb->angle( $self->{'WIND_VAR_1'} + 0,
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'WIND_VAR_1'} ? : 2 1 3
217 $DEG )
218 : undef;
219 }
220  
221 3 ▶sub wind_high {
Subroutine wind_high: called CC=2 SCAR=6.9
Pod documented
222 3 my $self = shift;
223 return
224 defined $self->{'WIND_VAR_2'}
225 3 ▶ ? Class::Measure::Scientific::FX_992vb->angle( $self->{'WIND_VAR_2'} + 0,
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'WIND_VAR_2'} ? : 2 1 3
226 $DEG )
227 : undef;
228 }
229  
230 2 ▶sub wind_speed {
Subroutine wind_speed: called CC=1 SCAR=0.0
Pod documented
231 2 my $self = shift;
232 2 return Class::Measure::Scientific::FX_992vb->speed( $self->{'WIND_KTS'} + 0,
233 $KNOTS );
234 }
235  
236 2 ▶sub wind_gust {
Subroutine wind_gust: called CC=2 SCAR=6.9
Pod documented
237 2 my $self = shift;
238 2 my $gust = $self->{'WIND_GUST_KTS'};
239 2 ▶ if ($gust) {
Branch: 1 branch
BranchTrueFalseTotal
if ($gust) { } 1 1 2
240 1 $gust += 0;
241 }
242 else {
243 1 $gust = 0;
244 }
245 2 return Class::Measure::Scientific::FX_992vb->speed( $gust, $KNOTS );
246 }
247  
248 ## no critic qw(ProhibitVagueNames)
249 2 ▶sub temp {
Subroutine temp: called CC=1 SCAR=0.0
Pod documented
250 ## use critic
251 2 my $self = shift;
252 return Class::Measure::Scientific::FX_992vb->temperature(
253 2 $self->{'TEMP_C'} + 0, $CELSIUS );
254 }
255  
256 2 ▶sub dew {
Subroutine dew: called CC=1 SCAR=0.0
Pod documented
257 2 my $self = shift;
258 return Class::Measure::Scientific::FX_992vb->temperature(
259 2 $self->{'DEW_C'} + 0, $CELSIUS );
260 }
261  
262 1 ▶sub alt {
Subroutine alt: called CC=1 SCAR=0.0
Pod documented
263 1 my $self = shift;
264 return Class::Measure::Scientific::FX_992vb->pressure(
265 1 $self->{'pressure'} * $HECTO, $PA );
266 }
267  
268 1 ▶sub pressure {
Subroutine pressure: called CC=1 SCAR=0.0
Pod documented
269 1 my $self = shift;
270 return Class::Measure::Scientific::FX_992vb->pressure(
271 1 $self->{'pressure'} * $HECTO, $PA );
272 }
273  
274 # This isn't handled in Geo::METAR, it's just tokenized for the parser
275 20 ▶sub _vertical_visibility {
Subroutine _vertical_visibility: called CC=2 SCAR=6.9
276 20 my $self = shift;
277 20 my $vv = +$INF;
278 20 $self->{'METAR'} =~ m{.*\bVV(?<vv>\d{3})\b.*}msx;
279 20 ▶ if ( defined $LAST_PAREN_MATCH{'vv'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $Geo::METAR::Deduced::LAST_PAREN_MATCH{"vv"}) 3 17 20
280 3 $vv = $LAST_PAREN_MATCH{'vv'} * $HECTO;
281 }
282 20 return _len( $vv, $FT );
283 }
284  
285 # https://en.wikipedia.org/wiki/Ceiling_(cloud)
286 # Rules say 20000ft is 6000m so we use ft to avoid rounding errors.
287 34 ▶sub ceiling {
Subroutine ceiling: called CC=8 SCAR=20.8
Pod documented
288 34 my $self = shift;
289  
290 34 my $cloud_ceiling = +$INF;
291 my %TEST = (
292 8 ▶ 'ICAO' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
293 8 my ($base) = @_;
294 8 return $base < $ICAO_MAX_CEILING;
295 },
296 1 ▶ 'UK' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
297 1 return 1;
298 },
299 12 ▶ 'US' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
300 12 return 1;
301 },
302 34 );
303 34 for my $layer ( @{ $self->{'sky'} } ) {
304 ###l4p $log->trace($layer);
305 ## no critic (ProhibitUnusedCapture)
306 48 ▶ if ( $layer =~ m{(?:BKN|OVC)(?<base>\d{3})}igmsx ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($layer =~ /(?:BKN|OVC)(?<base>\d{3})/gimsux) 22 26 48
307 ## use critic
308 22 my $cloud_base = $LAST_PAREN_MATCH{'base'};
309 22 ▶ if ( $cloud_base < $cloud_ceiling
Branch: 1 branch
BranchTrueFalseTotal
if ($cloud_base < $cloud_ceiling and $TEST{$self->rules}($cloud_base)) 20 2 22
Condition100%3/3
$cloud_base < $cloud_ceiling and $TEST{$self->rules}($cloud_base)
!ll&&!rl&&r
1120
MC/DC100%2/2
$cloud_base < $cloud_ceiling and $TEST{$self->rules}($cloud_base)
$cloud_base < $cloud_ceiling $TEST{$self->rules}($cloud_base)
Truth table100%3/3
A and B
A= $cloud_base < $cloud_ceilingB= $TEST{$self->rules}($cloud_base)
ABresult
0X0
100
111
310 && $TEST{ $self->rules }($cloud_base) )
311 {
312 20 $cloud_ceiling = $cloud_base;
313 }
314 }
315 }
316 34 ▶ if ( q{US} eq $self->rules ) {
Branch: 1 branch
BranchTrueFalseTotal
if ("US" eq $self->rules) 20 14 34
317 20 my $vv = $self->_vertical_visibility()->ft() / $HECTO;
318 20 ▶ if ( $vv < $cloud_ceiling ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($vv < $cloud_ceiling) 3 17 20
319 3 $cloud_ceiling = $vv;
320 }
321 }
322 34 ▶ return ( $INF == $cloud_ceiling )
Branch: 1 branch
BranchTrueFalseTotal
$INF == $cloud_ceiling ? : 11 23 34
323 ? _len( $cloud_ceiling, $FT )
324 : _len( $cloud_ceiling * $HECTO, $FT );
325 }
326  
327 37 ▶sub visibility {
Subroutine visibility: called CC=4 SCAR=13.9
Pod documented
328 37 my $self = shift;
329 37 my $vis = $self->{'visibility'};
330 37 my $whole = qr{(?:(?<whole>[[:digit:]]+)[ ])*}smx;
331 37 $vis =~ m{$whole(?<amount>[[:digit:]/]+)(?<unit>SM)*$}msx;
332 37 my $unit = $METER;
333 37 ▶ if ( $LAST_PAREN_MATCH{'unit'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Geo::METAR::Deduced::LAST_PAREN_MATCH{"unit"}) 26 11 37
334 26 $unit = $MI;
335 }
336 37 my $amount = $LAST_PAREN_MATCH{'amount'};
337 37 my $total = 0;
338 37 ▶ if ( $LAST_PAREN_MATCH{'whole'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Geo::METAR::Deduced::LAST_PAREN_MATCH{"whole"}) 4 33 37
339 4 $total = $LAST_PAREN_MATCH{'whole'};
340 }
341 37 ▶ if ( $amount =~ m{(?<num>[[:digit:]]+)[/](?<den>[[:digit:]]+)}msx ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($amount =~ m[(?<num>[[:digit:]]+)[/](?<den>[[:digit:]]+)]msux) { } 8 29 37
342 8 $total += $LAST_PAREN_MATCH{'num'} / $LAST_PAREN_MATCH{'den'};
343 }
344 else {
345 29 $total = $amount;
346 }
347 37 return _len( $total, $unit );
348 }
349  
350 # https://en.wikipedia.org/wiki/METAR#Flight_categories_in_the_U.S.
351 # https://www.experimentalaircraft.info/wx/colors-metar-taf.php
352 15 ▶sub flight_rule {
Subroutine flight_rule: called CC=7 SCAR=19.5
Pod documented
353 15 my $self = shift;
354 15 my $lvl;
355 15 ▶ if ( $self->visibility()->mile() < $vis_min{'IFR'}->mile()
Branch: 3 branches
BranchTrueFalseTotal
if ($self->visibility->mile < $vis_min{'IFR'}->mile or $self->ceiling->ft < $ceil_min{'IFR'}->ft) { } 5 10 15
elsif ($self->visibility->mile < $vis_min{'MVFR'}->mile or $self->ceiling->ft < $ceil_min{'MVFR'}->ft) { } 2 8 10
elsif ($self->visibility->mile <= $vis_min{'VFR'}->mile or $self->ceiling->ft <= $ceil_min{'VFR'}->ft) { } 5 3 8
Condition100%3/3
$self->visibility->mile < $vis_min{"IFR"}->mile or $self->ceiling->ft < $ceil_min{"IFR"}->ft
l!l&&r!l&&!r
4110
MC/DC100%2/2
$self->visibility->mile < $vis_min{"IFR"}->mile or $self->ceiling->ft < $ceil_min{"IFR"}->ft
$self->visibility->mile < $vis_min{"IFR"}->mile $self->ceiling->ft < $ceil_min{"IFR"}->ft
Truth table100%3/3
A or B
A= $self->visibility->mile < $vis_min{"IFR"}->mileB= $self->ceiling->ft < $ceil_min{"IFR"}->ft
ABresult
1X1
011
000
356 || $self->ceiling()->ft() < $ceil_min{'IFR'}->ft() )
357 {
358 5 $lvl = $LIFR;
359 }
360 ▶ elsif ($self->visibility()->mile() < $vis_min{'MVFR'}->mile()
Condition100%3/3
$self->visibility->mile < $vis_min{"MVFR"}->mile or $self->ceiling->ft < $ceil_min{"MVFR"}->ft
l!l&&r!l&&!r
118
MC/DC100%2/2
$self->visibility->mile < $vis_min{"MVFR"}->mile or $self->ceiling->ft < $ceil_min{"MVFR"}->ft
$self->visibility->mile < $vis_min{"MVFR"}->mile $self->ceiling->ft < $ceil_min{"MVFR"}->ft
Truth table100%3/3
A or B
A= $self->visibility->mile < $vis_min{"MVFR"}->mileB= $self->ceiling->ft < $ceil_min{"MVFR"}->ft
ABresult
1X1
011
000
361 || $self->ceiling()->ft() < $ceil_min{'MVFR'}->ft() )
362 {
363 2 $lvl = $IFR;
364 }
365 ▶ elsif ($self->visibility()->mile() <= $vis_min{'VFR'}->mile()
Condition100%3/3
$self->visibility->mile <= $vis_min{"VFR"}->mile or $self->ceiling->ft <= $ceil_min{"VFR"}->ft
l!l&&r!l&&!r
323
MC/DC100%2/2
$self->visibility->mile <= $vis_min{"VFR"}->mile or $self->ceiling->ft <= $ceil_min{"VFR"}->ft
$self->visibility->mile <= $vis_min{"VFR"}->mile $self->ceiling->ft <= $ceil_min{"VFR"}->ft
Truth table100%3/3
A or B
A= $self->visibility->mile <= $vis_min{"VFR"}->mileB= $self->ceiling->ft <= $ceil_min{"VFR"}->ft
ABresult
1X1
011
000
366 || $self->ceiling()->ft() <= $ceil_min{'VFR'}->ft() )
367 {
368 5 $lvl = $MVFR;
369 }
370 else {
371 3 $lvl = $VFR;
372 }
373  
374 15 return $lvl;
375 }
376  
377 # Make it possible to check for weather types and make it return:
378 # 0 when not observed
379 # 1 observed as light
380 # 2 observed as normal
381 # 3 observed as heavy
382 7 for my $k ( keys %WX ) {
383  
384 210 ▶ sub _nom {
Subroutine _nom: called CC=1 SCAR=0.0
385 210 my $label = shift;
386 210 $label =~ s{[(].*[)]}{}gmsx;
387 210 $label =~ s{(\s|/)+}{_}gmsx;
388 210 return $label;
389 }
390 ## no critic (ProhibitNoStrict)
391 7 ▶ no strict q{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
392 ## use critic
393 210 ▶ *{ _nom( $WX{$k} ) } = sub {
Subroutine __ANON__: called CC=5 SCAR=16.1
394 7 my $self = shift;
395 7 my $wx = Set::Scalar->new( @{ $self->weather } );
396 7 my $lvl = 0;
397 7 my $RE = qr{^(?<modifier>[+-]*)$k}msx;
398 7 ▶ while ( defined( my $w = $wx->each ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $w = $wx->each)) 7 7 14
399 7 ▶ if ( $w =~ $RE ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($w =~ /$RE/u) 6 1 7
400 6 $lvl = $AVERAGE;
401 6 ▶ if ( $LAST_PAREN_MATCH{'modifier'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Geo::METAR::Deduced::LAST_PAREN_MATCH{"modifier"}) 5 1 6
402 5 ▶ ( $LAST_PAREN_MATCH{'modifier'} eq $MINUS )
Branch: 1 branch
BranchTrueFalseTotal
$Geo::METAR::Deduced::LAST_PAREN_MATCH{'modifier'} eq $MINUS ? : 3 2 5
403 ? $lvl--
404 : $lvl++;
405 }
406 }
407 }
408 7 return $lvl;
409 210 };
410 }
411  
412 7 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
413 7 __PACKAGE__->meta->make_immutable;
414  
415 7 1;
416  
417 __END__
↑ Summary