Condition Coverage

lib/DateTime/Format/Intl.pm
Criterion Covered Total %
condition 365 845 43.2


and 2 conditions

line l !l condition
390 0 2 $all and scalar @$all
509 0 262 $all and scalar @$all
1117 0 3 $ref and ref $ref eq "HASH" and scalar keys %$ref
1828 0 598 $all and scalar @$all
1862 0 432 $all and scalar @$all
2331 2756 1740 defined $diff and scalar grep(($_ eq $diff), @{$$def{"pattern_components"};})
3084 526 23 $best_score >= 0 && scalar @{$best_score_object->missing // [];} || $best_score < 0 and scalar @{$request_object->date_components // [];}
0 23 $best_score >= 0 && scalar @{$best_score_object->missing // [];} || $best_score < 0 and scalar @{$request_object->date_components // [];} and scalar @{$request_object->time_components // [];}
4465 0 0 not length $self->{'_reset'} and scalar @_
4808 21011 0 scalar @{$self->{'tokens'} // [];} and scalar @{$self->{'components'} // [];}
0 0 scalar @{$self->{'tokens'} // [];} and scalar @{$self->{'components'} // [];} and scalar @{$self->{'date_components'} // [];}
0 0 scalar @{$self->{'tokens'} // [];} and scalar @{$self->{'components'} // [];} and scalar @{$self->{'date_components'} // [];} and scalar @{$self->{'time_components'} // [];}
4824 21011 0 scalar @{$self->{'skeleton_tokens'} // [];} and scalar @{$self->{'skeleton_components'} // [];}
0 0 scalar @{$self->{'skeleton_tokens'} // [];} and scalar @{$self->{'skeleton_components'} // [];} and scalar @{$self->{'skeleton_date_components'} // [];}
0 0 scalar @{$self->{'skeleton_tokens'} // [];} and scalar @{$self->{'skeleton_components'} // [];} and scalar @{$self->{'skeleton_date_components'} // [];} and scalar @{$self->{'skeleton_time_components'} // [];}

and 3 conditions

line !l l&&!r l&&r condition
50 0 0 437 defined $this and length $this
68 437 0 0 not defined $ref and $cldr->error
71 437 0 0 builtin::blessed($loc) and ref $loc eq "Locale::Intl"
192 435 2 0 $has_style and $opts->{'weekday'} || $opts->{'era'} || $opts->{'year'} || $opts->{'month'} || $opts->{'day'} || $opts->{'hour'} || $opts->{'minute'} || $opts->{'second'} || $opts->{'fractionalSecondDigits'} || $opts->{'timeZoneName'}
237 0 437 0 lc $calendar ne "gregory" and lc $calendar ne "gregorian"
311 1 14 144 $opts->{'hour'} and $opts->{'hour'} ne "2-digit"
326 0 0 0 not defined $num_sys_def and $cldr->error
336 0 0 0 not $num_sys eq 'latn' || scalar grep((($systems->{$_} // '') eq $num_sys), ('number_system', 'native')) and $num_sys_def->{'type'} ne "numeric"
342 0 434 3 not defined $num_sys and my $locale_num_sys = $locale->number
345 3 0 0 not defined $num_sys_def and $cldr->error
347 2 1 0 scalar grep((($systems->{$_} // "") eq $locale_num_sys), ("number_system", "native")) and $num_sys_def->{'type'} ne "numeric"
373 141 0 0 not defined $ref and $cldr->error
389 2 0 0 not defined $all and $cldr->error
390 0 0 2 $all and scalar @$all and $all->[0]{'timezone'}
446 93 0 0 not defined $all and $cldr->error
454 0 0 0 $era eq "short" and exists $supported->{'abbreviated'}
489 114 147 112 $prop eq "month" and $val eq '2-digit' || $val eq 'numeric'
508 262 0 0 not defined $all and $cldr->error
516 0 0 0 $val eq "short" and exists $supported->{'abbreviated'}
577 1 0 0 not defined $date_pattern and $unicode->error
585 0 1 0 not defined $date_pattern and $unicode->error
589 1 1 0 defined $date_pattern and defined $time_pattern
596 0 0 0 not defined $date_pattern and $unicode->error
634 0 0 0 @_ == 1 and defined $_[0]
0 0 0 @_ == 1 and defined $_[0] and ref $_[0] eq "HASH"
0 0 0 @_ == 1 and defined $_[0] and ref $_[0] eq "HASH" and exists $_[0]{'message'}
675 0 0 46 defined $this && length($this // '')
0 0 46 builtin::blessed($this) && $this->isa('DateTime')
735 0 0 150 builtin::blessed($this1) && $this1->isa('DateTime')
0 0 150 builtin::blessed($this2) && $this2->isa('DateTime')
761 150 0 0 not defined $diff and $unicode->error
785 0 0 225 builtin::blessed($this1) && $this1->isa('DateTime')
0 0 225 builtin::blessed($this2) && $this2->isa('DateTime')
807 75 0 150 $args->{'datetime1'} and $args->{'datetime2'}
825 75 0 150 exists $args->{'diff'} and defined $args->{'diff'}
832 75 0 0 not defined $diff and $unicode->error
840 186 0 39 $diff eq 'h' || $diff eq 'H' and exists $opts->{'hourCycle'}
0 0 39 $diff eq 'h' || $diff eq 'H' and exists $opts->{'hourCycle'} and $opts->{'hourCycle'}
854 0 0 216 defined $all and scalar keys %$all
952 0 0 92 defined $this && length($this // '')
0 0 92 builtin::blessed($this) && $this->isa('DateTime')
964 92 0 0 scalar @_ == 1 and ref($_[0] // "") eq "HASH"
1026 0 0 0 scalar @_ == 1 and ref $_[0] eq "HASH"
1032 0 0 0 scalar @_ > 1 and ref $_[-1] eq "HASH"
1039 0 0 0 not defined $err and exists $opts->{'error'}
0 0 0 not defined $err and exists $opts->{'error'} and defined $opts->{'error'}
0 0 0 not defined $err and exists $opts->{'error'} and defined $opts->{'error'} and length $opts->{'error'}
1041 0 0 0 exists $opts->{'class'} and defined $opts->{'class'}
0 0 0 exists $opts->{'class'} and defined $opts->{'class'} and length $opts->{'class'}
1042 0 0 0 exists $opts->{'code'} and defined $opts->{'code'}
0 0 0 exists $opts->{'code'} and defined $opts->{'code'} and length $opts->{'code'}
1047 0 0 0 not defined $err and !scalar(@_) || defined $class
0 0 0 defined $err and builtin::blessed($err)
0 0 0 defined $err and builtin::blessed($err) and scalar @_ == 1 || scalar @_ == 2 && defined $class
1068 0 0 0 defined $code and $self->{'error'}->can("code")
1070 0 0 0 defined ${"${class}::FATAL_EXCEPTIONS";} and ${"${class}::FATAL_EXCEPTIONS";}
1100 0 0 1 defined $locales && length $locales
0 1 0 (builtin::reftype($locales) // "") eq "ARRAY" and not scalar @$locales
1117 0 0 3 $ref and ref $ref eq "HASH"
1136 81 0 0 ref $pattern and not overload::Method($pattern, "\"\"")
1147 0 81 0 ref $request_object and not $request_object->isa("DateTime::Format::Intl::Skeleton")
0 81 0 defined $pattern_object and !ref($pattern_object) || ref $pattern_object && !$pattern_object->isa('DateTime::Format::Intl::Skeleton')
1198 0 0 43 exists $opts->{'hourCycle'} and defined $opts->{'hourCycle'}
1214 0 0 0 exists $opts->{'hour12'} and not $opts->{'hour12'}
1237 0 12 0 $opts->{'second'} and $opts->{'fractionalSecondDigits'}
1273 0 0 4 $token eq 'c' || $token eq 'e' and $length >= 3
0 0 0 $token eq 'c' || $token eq 'e' and $length >= 3
1414 154 27 7 $component eq 'L' || $component eq 'M' and length $token <= 2
181 7 0 $component eq 'L' || $component eq 'M' and length $token <= 2 and $opts->{'month'} ne "numeric"
34 0 0 $component eq 'L' || $component eq 'M' and length $token <= 2 and $opts->{'month'} ne "numeric" and $opts->{'month'} ne "2-digit"
27 30 131 exists $pattern_len->{$component} and exists $request_len->{$component}
30 91 40 exists $pattern_len->{$component} and exists $request_len->{$component} and $pattern_len->{$component} == $request_len->{$component}
1470 3 0 0 ref $pattern and not overload::Method($pattern, "\"\"")
1538 3 0 0 not defined $ref and $cldr->error
1563 0 0 0 not defined $ref and $cldr->error
1789 23609 0 436 scalar @_ == 1 and defined $_[0]
23609 0 436 scalar @_ == 1 and defined $_[0] and (ref $_[0] || '') eq "HASH"
1827 598 0 0 not defined $all and $cldr->error
1880 14 0 648 exists $DateTime::Format::Intl::CACHE->{$locale} and ref $DateTime::Format::Intl::CACHE->{$locale} eq "HASH"
14 499 149 exists $DateTime::Format::Intl::CACHE->{$locale} and ref $DateTime::Format::Intl::CACHE->{$locale} eq "HASH" and exists $DateTime::Format::Intl::CACHE->{$locale}{$key}
1895 20 0 0 $type ne "atTime" and $type ne "standard"
1910 20 0 0 not defined $ref and $cldr->error
1911 0 0 20 $ref and $ref->{'format_pattern'}
2422 337 52 162 exists $opts->{'hour12'} and $opts->{'hour12'}
52 42 120 exists $opts->{'hour12'} and $opts->{'hour12'} and not exists $opts->{'dayPeriod'}
2601 337 162 52 exists $opts->{'hourCycle'} && defined $opts->{'hourCycle'} && ($opts->{'hourCycle'} eq 'h23' || $opts->{'hourCycle'} eq 'h24')
2673 3945 0 1565 exists $opts->{$option} and length($opts->{$option} // "")
2421 1524 0 defined $diff and $value eq $diff
2928 18408 11243 3660 exists $opts->{'hourCycle'} and $opts->{'hourCycle'} eq 'h23' || $opts->{'hourCycle'} eq 'h24'
11243 3450 210 exists $opts->{'hourCycle'} and $opts->{'hourCycle'} eq 'h23' || $opts->{'hourCycle'} eq 'h24' and $component eq 'a' || $component eq 'b' || $component eq 'B'
33101 0 0 $component eq "S" and exists $opts->{'second'}
2962 1881 4806 2049 $opts->{'hourCycle'} eq "h12" and index($pattern_skeleton, "h") != -1
4860 1503 324 $opts->{'hourCycle'} eq "h24" and index($pattern_skeleton, "H") != -1
3008 0 11101 498 $i <= $#sorted_available_skeletons and length $sorted_available_skeletons[$i] >= $requested_skeleton_len
3084 494 48 9 $best_score < $perfect_component_score and scalar @$request_tokens == 1
542 0 9 $best_score < $perfect_component_score and scalar @$request_tokens == 1 and not exists $$available_patterns{$request_tokens->[0]{'token'}}
48 7 2 $best_score < $perfect_component_score and scalar @$request_tokens == 1 and not exists $$available_patterns{$request_tokens->[0]{'token'}} and not exists $$available_patterns{$request_tokens->[0]{'component'}}
3 0 20 $best_score >= 0 && scalar @{$best_score_object->missing // [];} || $best_score < 0 and scalar @{$request_object->date_components // [];} and scalar @{$request_object->time_components // [];} and not $diff
3 0 20 $best_score >= 0 && scalar @{$best_score_object->missing // [];} || $best_score < 0 and scalar @{$request_object->date_components // [];} and scalar @{$request_object->time_components // [];} and not $diff and not $args->{'subprocess'}
3160 0 10 10 exists $components_len->{'M'} and $components_len->{'M'} == 4
10 4 6 exists $components_len->{'M'} and $components_len->{'M'} == 4 and exists $components_len->{'E'}
0 10 4 exists $components_len->{'M'} and $components_len->{'M'} == 4
0 6 4 exists $components_len->{'M'} and $components_len->{'M'} == 3
3227 216 232 81 not $diff and $best_score_object->need_adjustment
4383 0 0 0 ref $_[0] and $_[0]->isa("DateTime::Format::Intl::Exception")
4423 0 0 0 $self->{'_cache_value'} and not length $self->{'_reset'}
4452 0 0 0 defined $file and defined $line
4518 0 0 0 $serialiser eq "Sereal" and "Sereal::Encoder"->VERSION <= "version"->parse("4.023")
4532 0 0 0 scalar @args == 1 && ref $args[0] eq 'ARRAY'
4533 0 0 0 defined $ref && ref $ref eq 'ARRAY' && scalar @$ref > 1
4618 20462 0 0 scalar @args == 1 and defined $args[0]
20462 0 0 scalar @args == 1 and defined $args[0] and ref $args[0] eq "HASH"
4651 0 0 0 defined $val and $self->error
4758 21011 0 0 scalar @args == 1 and defined $args[0]
21011 0 0 scalar @args == 1 and defined $args[0] and ref $args[0] eq "HASH"
4799 2204 0 0 defined $val and $self->error
4983 41471 75100 39750 scalar @$tokens and $tokens->[-1]{'component'} eq $component

or 2 conditions

line l !l condition
49 0 437 (delete $opts->{'fatal'} // $DateTime::Format::Intl::FATAL_EXCEPTIONS) // 0
51 437 0 'Locale::Unicode::Data'->new || (return $self->pass_error('Locale::Unicode::Data'->error))
53 1 436 builtin::reftype($this) // ""
58 437 0 $cldr->make_inheritance_tree($loc) || (return $self->pass_error($cldr->error))
77 437 0 'Locale::Intl'->new($loc) || (return $self->pass_error('Locale::Intl'->error))
86 437 0 'DateTime::Locale::FromCLDR'->new($locale) || (return $self->pass_error('DateTime::Locale::FromCLDR'->error))
100 7 0 $self->_get_default_options_for_locale || (return $self->pass_error)
159 3975 54 $_ // ""
4029 0 $value // ""
246 1 436 $time_style // ""
267 54 0 $unicode->time_format_preferred || 'H'
287 57 0 $unicode->time_format_preferred || 'H'
319 437 0 $cldr->number_system('number_system', $ns_default) || (return $self->pass_error($cldr->error))
336 0 0 $num_sys eq 'latn' || scalar grep((($systems->{$_} // '') eq $num_sys), ('number_system', 'native'))
346 3 0 $num_sys_def ||= {}
347 1 5 $systems->{$_} // ""
361 0 437 $num_sys // ""
363 437 0 $ns_default || 'latn'
368 141 296 $tz // ""
370 141 0 $cldr->timezone_canonical($tz) || (return $self->pass_error($cldr->error))
402 143 294 $tz // ""
421 44 393 $tzNameOpt // ""
436 93 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
487 373 501 $val // ""
496 261 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
574 1 0 $unicode->can("date_format_$dateStyle") || (return $self->error("No method date_format_$dateStyle found in ", ref $unicode))
578 1 0 $date_pattern // ""
582 1 0 $unicode->can("time_format_$timeStyle") || (return $self->error("No method time_format_$timeStyle found in ", ref $unicode))
586 1 0 $time_pattern // ""
593 0 0 $unicode->can("datetime_format_$datetime_mode") || (return $self->error("No method datetime_format_$datetime_mode found in ", ref $unicode))
597 0 0 $pattern // ""
613 295 0 $self->_select_best_pattern('patterns', $patterns, 'options', $resolved) || (return $self->pass_error)
701 46 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
702 46 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone.')
703 46 0 $self->{'locale'} || die('Our Locale::Unicode object is gone!')
719 46 0 $self->format_to_parts($this, 'datetime', $dt) || (return $self->pass_error)
752 150 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
753 150 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone.')
754 150 0 $self->{'locale'} || die('Our Locale::Unicode object is gone!')
767 150 0 $self->format_range_to_parts($this1, $this2, 'diff', $diff, 'datetime1', $dt1, 'datetime2', $dt2) || (return $self->pass_error)
802 225 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
803 225 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone.')
804 225 0 $self->{'locale'} || die('Our Locale::Unicode object is gone!')
862 2667 0 $pat // ""
877 216 0 $self->_select_best_pattern('patterns', $patterns, 'options', $opts, 'diff', $diff) || (return $self->pass_error)
895 18 0 $cldr->split_interval('greatest_diff', $diff, 'pattern', $pattern) || (return $self->pass_error($cldr->error))
921 225 0 $self->_format_to_parts('pattern', $def->{'parts'}[0], 'datetime', $dt1) || (return $self->pass_error)
936 225 0 $self->_format_to_parts('pattern', $def->{'parts'}[2], 'datetime', $dt2) || (return $self->pass_error)
964 0 0 $_[0] // ""
966 92 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone.')
968 92 0 $self->{'_pattern'} || die('Saved pattern is gone!')
996 92 0 $self->_format_to_parts('pattern', $pattern, 'datetime', $dt) || (return $self->pass_error)
1100 1 0 builtin::reftype($locales) // ""
1104 1 0 builtin::reftype($locales) // ""
1105 1 0 $self->_cldr || (return $self->pass_error)
1108 3 0 'Locale::Intl'->new($locales->[$i]) || (return $self->pass_error('Locale::Intl'->error))
1110 3 0 $cldr->make_inheritance_tree($locale->core) || (return $self->pass_error($cldr->error))
1134 81 0 $args->{'pattern'} || die('No pattern was provided.')
1135 81 0 $args->{'options'} || die('No resolved options hash was provided.')
1142 0 0 $opts // "undef"
1144 81 0 $args->{'request_object'} || die('Missing the request object.')
1149 0 0 $request_object // "undef"
1154 0 0 $pattern_object // "undef"
1156 81 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone.')
1247 0 0 $unicode->number_symbols || die($unicode->error)
1248 0 0 $symbols->{'decimal'} || '.'
1466 3 0 $args->{'pattern'} || die('No format pattern was provided.')
1467 3 0 $args->{'missing'} || die('No array reference of missing components was provided.')
1478 3 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
1479 3 0 $self->{'locale'} || die('The locale value is gone!')
1480 0 3 $self->{'calendar'} || 'gregorian'
1523 3 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
1545 3 0 $pat // ""
1570 0 0 $str // ""
1619 551 0 $self->{'_cldr'} || (return $self->error('The Locale::Unicode::Data object is gone!'))
1623 1 0 'Locale::Unicode::Data'->new || (return $self->pass_error('Locale::Unicode::Data'->error))
1645 542 0 $args->{'pattern'} || die('No pattern was provided.')
1646 542 0 $args->{'datetime'} || die('No DateTime object was provided.')
1647 542 0 $self->{'locale'} || die('Our Locale::Unicode object is gone!')
1651 0 0 'Locale::Intl'->new("$locale") || (return $self->pass_error('Locale::Intl'->error))
1656 542 0 'DateTime::Format::Unicode'->new('locale', $locale, 'time_zone', $opts->{'timeZone'}) || (return $self->pass_error('DateTime::Format::Unicode'->error))
1658 542 0 $fmt->_get_helper_methods || (return $self->pass_error)
1725 1473 0 $str // ""
1789 436 0 ref $_[0] || ''
1809 295 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
1810 295 0 $self->{'locale'} || die('The locale value is gone!')
1811 0 295 $self->{'calendar'} || 'gregorian'
1814 295 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
1844 216 0 shift @_ || die('No greatest difference component was provided.')
1845 216 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
1846 216 0 $self->{'locale'} || die('The locale value is gone!')
1847 0 216 $self->{'calendar'} || 'gregorian'
1851 216 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
1893 20 0 $opts->{'width'} || die('No datetime format width was provided.')
1894 0 20 $opts->{'type'} || 'atTime'
1896 20 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone.')
1897 20 0 $self->{'locale'} || die('Our Locale::Unicode object is gone!')
1898 20 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
1900 0 20 $self->{'calendar'} || 'gregorian'
1917 20 0 $pattern // ""
1924 7 0 shift @_ || $self->{'locale'} || (return $self->error('No locale was provided to get default options.'))
1927 7 0 $self->{'_cldr'} || die('The Locale::Unicode::Data object is gone!')
1929 7 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
1960 551 0 $self->{'locale'} || die('Locale::Intl object is gone!')
1961 551 0 $self->_cldr || (return $self->pass_error)
2099 551 0 $cldr->make_inheritance_tree($locale) || (return $self->pass_error($cldr->error))
2124 551 0 $args->{'options'} || (return $self->error('No options was provided.'))
2308 550 1 $locale_preferences->{'era'} || 4
550 1 $locale_preferences->{'weekday'} || 7
551 0 $locale_preferences->{'dayPeriod'} || 4
551 0 $locale_preferences->{'timeZone'} || 3
2382 0 0 $components_length->{$c} ||= []
2390 0 0 $components_length->{$c} ||= []
2518 551 0 $args->{'options'} || die('No resolved options hash reference provided.')
2522 551 0 $self->_options_to_skeleton('options', $opts, defined $diff ? ('diff', $diff) : ()) || (return $self->pass_error)
2529 551 0 $self->_new_skeleton_object('pattern_skeleton', $requested_skeleton, 'components', $components, 'date_components', $date_components, 'time_components', $time_components, 'tokens', $tokens, 'debug', $DateTime::Format::Intl::DEBUG) || (return $self->pass_error)
2543 20462 0 'DateTime::Format::Intl::ScoreResult'->new(@_) || (return $self->pass_error('DateTime::Format::Intl::ScoreResult'->error))
2551 21011 0 'DateTime::Format::Intl::Skeleton'->new(@_) || (return $self->pass_error('DateTime::Format::Intl::Skeleton'->error))
2562 551 0 $args->{'options'} || (return $self->error('No options provided.'))
2673 1565 0 $opts->{$option} // ""
2770 20460 0 $pattern // ""
2782 20440 0 $args->{'pattern_object'} || die('Missing pattern object.')
2783 20440 0 $args->{'request_object'} || die('Missing request object.')
2784 20440 0 $args->{'options'} || die('Missing the user options.')
2792 20440 0 $self->{'locale'} || die('The Locale::Intl object is gone')
2793 20440 0 $self->{'_unicode'} || die('The DateTime::Locale::FromCLDR object is gone')
2943 33311 0 $components_weight->{$component}{'penalty'} || 15
2973 20440 0 $self->_new_score_result('missing', $missing, 'need_adjustment', $need_adjustment, 'pattern_object', $pattern_object, 'request_object', $request_object, 'score', $score) || (return $self->pass_error)
2989 551 0 $args->{'patterns'} || (return $self->error('No patterns provided.'))
2991 551 0 $args->{'options'} || (return $self->error('No options was provided.'))
2996 551 0 $self->_new_request_object('options', $opts, defined $diff ? ('diff', $diff) : ()) || (return $self->pass_error)
3037 20440 0 $self->_remove_literal_text($pattern) || (return $self->pass_error)
3041 20440 0 $self->_pattern_to_skeleton($raw_pattern) || (return $self->pass_error)
3043 20440 0 $self->_new_skeleton_object('skeleton', $skeleton, 'pattern_skeleton', $pattern_skeleton, 'pattern', $pattern, 'debug', $DateTime::Format::Intl::DEBUG) || (return $self->pass_error)
3055 20440 0 $self->_score_pattern('request_object', $request_object, 'pattern_object', $pattern_object, 'options', $opts) || (return $self->pass_error)
3083 551 0 $request_object->tokens || die('No request tokens array reference set!')
3093 2 0 $self->_new_score_result('pattern_object', $request_object, 'request_object', $request_object, 'score', $best_score) || (return $self->pass_error)
3114 23 0 $request_object->date_components // []
3115 23 0 $request_object->time_components // []
3134 20 0 $date_score_object->missing // []
3153 20 0 $time_score_object->missing // []
3193 20 0 $self->_remove_literal_text($datetime_format) || (return $self->pass_error)
3195 20 0 $self->_new_skeleton_object('pattern', $datetime_format, 'skeleton', $datetime_skel, 'pattern_skeleton', $self->_pattern_to_skeleton($raw_pattern), 'debug', $DateTime::Format::Intl::DEBUG) || (return $self->pass_error)
3201 20 0 $self->_new_score_result('score', defined $best_score_object ? $best_score_object->score : _max($date_score_object->score, $time_score_object->score), 'pattern_object', $pattern_object, 'request_object', $request_object, 'need_adjustment', $date_score_object->need_adjustment || $time_score_object->need_adjustment ? 1 : 0) || (return $self->pass_error)
3229 81 0 $self->_adjust_pattern('pattern', $best_score_object->pattern_object->pattern, 'options', $opts, 'request_object', $best_score_object->request_object, 'pattern_object', $best_score_object->pattern_object) || (return $self->pass_error)
3254 1109 0 shift @_ || die('No object property was provided.')
4383 0 0 ref $_[0] || ''
4391 0 0 $args->{'message'} ||= ""
4427 0 0 $self->{'package'} // "undef"
0 0 $self->{'line'} // "undef"
0 0 $self->{'file'} // "undef"
4505 0 0 shift @_ || die('No object property was provided.')
4513 0 0 shift @_ // ""
4719 125326 0 shift @_ || die('No object property was provided.')
4808 20460 551 $self->{'tokens'} // []
4809 0 0 $self->{'components'} // []
4810 0 0 $self->{'date_components'} // []
4811 0 0 $self->{'time_components'} // []
4824 21011 0 $self->{'skeleton_tokens'} // []
4825 0 0 $self->{'skeleton_components'} // []
4826 0 0 $self->{'skeleton_date_components'} // []
4827 0 0 $self->{'skeleton_time_components'} // []
4927 209799 0 shift @_ || die('No object property was provided.')

or 3 conditions

line l !l&&r !l&&!r condition
44 0 437 0 ref $that || $that
49 0 0 437 delete $opts->{'fatal'} // $DateTime::Format::Intl::FATAL_EXCEPTIONS
190 1 1 435 $opts->{'dateStyle'} || $opts->{'timeStyle'}
192 0 0 2 $opts->{'weekday'} || $opts->{'era'} || $opts->{'year'} || $opts->{'month'} || $opts->{'day'} || $opts->{'hour'} || $opts->{'minute'} || $opts->{'second'} || $opts->{'fractionalSecondDigits'} || $opts->{'timeZoneName'}
246 1 158 278 length($time_style // "") or $opts->{'hour'}
270 0 0 33 $pref_hour_cycle eq 'H' || $pref_hour_cycle eq 'K'
21 0 0 $pref_hour_cycle eq 'h' || $pref_hour_cycle eq 'k'
278 30 0 18 $hc eq 'h12' || $hc eq 'h11'
283 0 0 0 $hc eq 'h12' || $hc eq 'h11'
313 1 39 104 $resolved->{'hourCycle'} eq 'h23' || $resolved->{'hourCycle'} eq 'h24'
347 0 0 3 $locale_num_sys eq "latn" or scalar grep((($systems->{$_} // "") eq $locale_num_sys), ("number_system", "native")) and $num_sys_def->{'type'} ne "numeric"
363 0 437 0 $num_sys //= $ns_default || 'latn'
451 744 186 0 $$width_map{$this->{'era_width'}} // $this->{'era_width'}
489 0 112 147 $val eq '2-digit' || $val eq 'numeric'
513 5124 3353 0 $$width_map{$this->{'term_width'}} // $this->{'term_width'}
566 1 1 295 $dateStyle or $timeStyle
603 1 1 0 $date_pattern // $time_pattern
840 39 0 186 $diff eq 'h' || $diff eq 'H'
844 0 12 27 $opts->{'hourCycle'} eq 'h23' || $opts->{'hourCycle'} eq 'h24'
964 0 92 0 scalar @_ == 1 and ref($_[0] // "") eq "HASH" or not @_ % 2
1018 0 0 0 ref $self || $self
1047 0 0 0 !scalar(@_) || defined $class
0 0 0 scalar @_ == 1 || scalar @_ == 2 && defined $class
1070 0 0 0 $self->{'fatal'} or defined ${"${class}::FATAL_EXCEPTIONS";} and ${"${class}::FATAL_EXCEPTIONS";}
1100 0 0 1 not defined $locales && length $locales or (builtin::reftype($locales) // "") eq "ARRAY" and not scalar @$locales
1147 0 0 81 not ref $request_object or ref $request_object and not $request_object->isa("DateTime::Format::Intl::Skeleton")
0 0 81 !ref($pattern_object) || ref $pattern_object && !$pattern_object->isa('DateTime::Format::Intl::Skeleton')
1214 30 0 13 $opts->{'hourCycle'} eq "h12" or $opts->{'hour12'}
12 0 0 $opts->{'hourCycle'} eq "h24" or exists $opts->{'hour12'} and not $opts->{'hour12'}
1273 4 0 0 $token eq 'c' || $token eq 'e'
6 4 0 $token eq "E" or $token eq 'c' || $token eq 'e' and $length >= 3
0 0 0 $token eq 'c' || $token eq 'e'
1414 20 14 154 $component eq 'L' || $component eq 'M'
1491 0 3 0 $alias->{$_} // $_
1633 0 0 662 $current_time - $DateTime::Format::Intl::LAST_CACHE_CLEAR > 86400 or keys %$DateTime::Format::Intl::CACHE > $DateTime::Format::Intl::MAX_CACHE_SIZE
2673 1565 0 3945 exists $opts->{$option} and length($opts->{$option} // "") or defined $diff and $value eq $diff
2916 21413 33311 795 exists $components_length->{$component} || exists $skeleton_components->{$component}
2928 87 3573 11243 $opts->{'hourCycle'} eq 'h23' || $opts->{'hourCycle'} eq 'h24'
0 210 3450 $component eq 'a' || $component eq 'b' || $component eq 'B'
3084 20 3 526 $best_score >= 0 && scalar @{$best_score_object->missing // [];} || $best_score < 0
4377 0 0 0 ref $this || $this
4533 0 0 0 ref $self || $self
4575 0 0 0 ref $this || $this
4605 0 20462 0 ref $this || $this
4740 0 21011 0 ref $this || $this
4807 21011 0 0 $self->{'pattern_skeleton'} || $self->{'skeleton'}