Condition Coverage

lib/Locale/Intl.pm
Criterion Covered Total %
condition 85 277 30.6


and 2 conditions

line l !l condition
274 1 3 $cals and ref $cals eq "ARRAY" and scalar @$cals
278 0 1 $ref and $ref->{'calendars'} and ref($ref->{'calendars'} // "") eq "ARRAY" and scalar @{$ref->{'calendars'};}
307 1 3 $ref and defined $ref->{'collations'} and ref $ref->{'collations'} eq "ARRAY" and scalar @{$ref->{'collations'};}
694 0 7 $info and exists $info->{'scripts'} and ref($info->{'scripts'} // "") eq "ARRAY" and scalar @{$info->{'scripts'};}
986 0 0 not length $self->{'_reset'} and scalar @_

and 3 conditions

line !l l&&!r l&&r condition
42 1 0 1 defined $lang and length $lang
69 0 0 2 defined $region and length $region
111 12 1 0 not defined $rv and $self->error
274 1 0 3 $cals and ref $cals eq "ARRAY"
278 0 0 1 $ref and $ref->{'calendars'}
0 0 1 $ref and $ref->{'calendars'} and ref($ref->{'calendars'} // "") eq "ARRAY"
306 4 0 0 not defined $ref and $cldr->error
307 0 1 3 $ref and defined $ref->{'collations'}
1 0 3 $ref and defined $ref->{'collations'} and ref $ref->{'collations'} eq "ARRAY"
342 2 0 0 not defined $all and $cldr->error
343 0 0 2 $all and ref $all eq "ARRAY"
345 0 0 2 $ref and exists $ref->{'time_format'}
0 0 2 $ref and exists $ref->{'time_format'} and $ref->{'time_format'}
380 3 0 0 not defined $ref and $cldr->error
381 0 1 2 $ref and length($ref->{'number_system'} // "")
407 2 1 0 not defined $ref and $cldr->error
408 1 0 2 $ref and length($ref->{'value'} // "")
565 0 0 19 $ref and $ref->{'target'}
628 1 0 6 defined $locale and length $locale
648 0 0 7 defined $locale and length $locale
0 7 0 defined $locale and length $locale and $core eq $locale
694 0 0 7 $info and exists $info->{'scripts'}
0 0 7 $info and exists $info->{'scripts'} and ref($info->{'scripts'} // "") eq "ARRAY"
756 0 0 0 scalar @_ == 1 and ref $_[0] eq "HASH"
762 0 0 0 scalar @_ > 1 and ref $_[-1] eq "HASH"
769 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'}
771 0 0 0 exists $opts->{'class'} and defined $opts->{'class'}
0 0 0 exists $opts->{'class'} and defined $opts->{'class'} and length $opts->{'class'}
772 0 0 0 exists $opts->{'code'} and defined $opts->{'code'}
0 0 0 exists $opts->{'code'} and defined $opts->{'code'} and length $opts->{'code'}
777 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
798 0 0 0 defined $code and $self->{'error'}->can("code")
800 0 0 0 defined ${"${class}::FATAL_EXCEPTIONS";} and ${"${class}::FATAL_EXCEPTIONS";}
904 0 0 0 ref $_[0] and $_[0]->isa("Locale::Intl::Exception")
944 0 0 0 $self->{'_cache_value'} and not length $self->{'_reset'}
973 0 0 0 defined $file and defined $line
1039 0 0 0 $serialiser eq "Sereal" and "Sereal::Encoder"->VERSION <= "version"->parse("4.023")
1053 0 0 0 scalar @args == 1 && ref $args[0] eq 'ARRAY'
1054 0 0 0 defined $ref && ref $ref eq 'ARRAY' && scalar @$ref > 1
1108 0 0 0 $serialiser eq "Sereal" and "Sereal::Encoder"->VERSION <= "version"->parse("4.023")
1123 0 0 0 scalar @args == 1 and ref $args[0] eq "ARRAY"

or 2 conditions

line l !l condition
36 125 0 $this->Locale::Unicode::new($locale, %$opts) || (return $this->pass_error($this->error))
45 1 0 'Locale::Unicode'->new($lang) || (return $this->pass_error('Locale::Unicode'->error))
86 0 0 $region // "undef"
232 1 0 $self->_cldr || (return $self->pass_error)
241 1 0 $self->_cldr || (return $self->pass_error)
250 1 0 $self->_cldr || (return $self->pass_error)
259 4 0 $self->_cldr || (return $self->pass_error)
267 3 0 $self->new($lang) || (return $self->pass_error)
268 3 0 $new->country_code || (return $self->error(q[Unable to find out a country code for this locale '], $self->core, "', or '${lang}'"))
270 4 0 $cldr->territory('territory', $cc) || (return $self->error("Unknown territory code '${cc}'"))
276 1 0 $cldr->territory('territory', '001') || (return $self->error(q[Unknown territory code '001' used for World ! This should not be happening.]))
278 1 0 $ref->{'calendars'} // ""
296 3 0 $self->_cldr || (return $self->pass_error)
298 3 0 $cldr->make_inheritance_tree($core) || (return $self->pass_error($cldr->error))
322 3 0 $self->_cldr || (return $self->pass_error)
336 0 0 $self->maximize || (return $self->pass_error)
337 0 0 $self->new($full) || (return $self->pass_error)
370 2 0 $self->_cldr || (return $self->pass_error)
372 2 0 $cldr->make_inheritance_tree($core) || (return $self->pass_error($cldr->error))
381 2 1 $ref->{'number_system'} // ""
396 2 0 $self->_cldr || (return $self->pass_error)
398 2 0 $cldr->make_inheritance_tree($core) || (return $self->pass_error($cldr->error))
408 2 0 $ref->{'value'} // ""
431 4 0 $self->_cldr || (return $self->pass_error)
436 1 0 $self->new($full) || (return $self->error)
441 4 0 $cldr->timezones('territory', $cc, 'is_canonical', 1) || (return $self->pass_error($cldr->error))
455 4 0 $self->_cldr || (return $self->pass_error)
460 2 0 $self->maximize || (return $self->pass_error)
461 2 0 $self->new($full) || (return $self->pass_error)
462 2 0 $locale->country_code || (return $self->error("No country code could be derived for this locale $core"))
468 4 0 $info->{'first_day'} // ""
479 1 3 $info->{'min_days'} // ""
491 1 3 $info->{'weekend'} // ""
557 19 0 $self->_cldr || (return $self->pass_error)
559 19 0 $cldr->make_inheritance_tree($core) || (return $self->pass_error($cldr->error))
616 7 0 $self->_cldr || (return $self->pass_error)
631 1 0 $locale3 //= "und"
694 7 0 $info->{'scripts'} // ""
868 48 0 $self->{'_cldr'} || (return $self->error('The Locale::Unicode::Data object is gone!'))
872 3 0 'Locale::Unicode::Data'->new || (return $self->pass_error('Locale::Unicode::Data'->error))
904 0 0 ref $_[0] || ''
912 0 0 $args->{'message'} ||= ""
948 0 0 $self->{'package'} // "undef"
0 0 $self->{'line'} // "undef"
0 0 $self->{'file'} // "undef"
1026 0 0 shift @_ || die('No object property was provided.')
1034 0 0 shift @_ // ""
1104 0 0 shift @_ // ""

or 3 conditions

line l !l&&r !l&&!r condition
333 2 0 0 $self->country_code || $self->SUPER::region
338 0 0 0 $self->country_code || $self->SUPER::region
541 285 7 2 $self->SUPER::language || $self->SUPER::language3
748 0 0 0 ref $self || $self
777 0 0 0 !scalar(@_) || defined $class
0 0 0 scalar @_ == 1 || scalar @_ == 2 && defined $class
800 0 0 0 $self->{'fatal'} or defined ${"${class}::FATAL_EXCEPTIONS";} and ${"${class}::FATAL_EXCEPTIONS";}
826 2 1 61 $self->country_code || $self->SUPER::region
898 0 0 0 ref $this || $this
1054 0 0 0 ref $self || $self
1129 0 0 0 ref $self || $self
1173 0 0 0 ref $this || $this