En/Latn/Io.pm

filter: Statementstmt 58.5% 41 / 70 Branchbran 0.0% 0 / 30 Conditioncond 0.0% 0 / 20 MC/DCmcdc 0.0% 0 / 13 Subroutinesub 50.0% 10 / 20 Podpod n/a totaltotal 33.3% 51 / 153 CC 24 SCAR 58.2
CC
24
Cov
34%
__ANON__
600.0
__ANON__
2.0
__ANON__
2.0
CRAP 335.5
« En/Latn/Dg.pm ↑ Summary En/Latn/Ai.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Io - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Io;
10 # This file auto generated from Data\common\main\en_IO.xml
11 # on Fri 17 Jan 12:03:31 pm GMT
12
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
16
17 1 our $VERSION = version->declare('v0.46.0');
18
19 1 ▶use v5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use feature 'unicode_strings';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
25
26 1 extends('Locale::CLDR::Locales::En::Latn::001');
27 has 'day_period_data' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=24 SCAR=64.0
32 # Time in hhmm format
33 0 my ($self, $type, $time, $day_period_type) = @_;
34 0 ▶ $day_period_type //= 'default';
Condition0%0/2
$day_period_type //= "default"
l!l
00
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
Aresult
11
00
35 SWITCH:
36 0 for ($type) {
37 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
38 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
39 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
40 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
41 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
42 && $time < 1800;
43 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
44 && $time < 2100;
45 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
46 && $time < 1200;
47 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
48 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
49 }
50 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
51 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
52 && $time < 1800;
53 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
54 && $time < 2100;
55 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
56 && $time < 1200;
57 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
58 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
59 }
60 0 last SWITCH;
61 }
62 }
63 0 } },
64 1 );
65
66 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
67 0 my ($orig, $self) = @_;
68 0 return $self->$orig;
69 1 };
70
71 has 'eras' => (
72 is => 'ro',
73 isa => HashRef,
74 init_arg => undef,
75 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
76 0 'gregorian' => {
77 },
78 } },
79 1 );
80
81 has 'date_formats' => (
82 is => 'ro',
83 isa => HashRef,
84 init_arg => undef,
85 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
86 0 'gregorian' => {
87 },
88 } },
89 1 );
90
91 has 'time_formats' => (
92 is => 'ro',
93 isa => HashRef,
94 init_arg => undef,
95 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
96 0 'gregorian' => {
97 'full' => q{HH:mm:ss zzzz},
98 'long' => q{HH:mm:ss z},
99 'medium' => q{HH:mm:ss},
100 'short' => q{HH:mm},
101 },
102 } },
103 1 );
104
105 has 'datetime_formats' => (
106 is => 'ro',
107 isa => HashRef,
108 init_arg => undef,
109 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
110 0 'gregorian' => {
111 },
112 } },
113 1 );
114
115 has 'datetime_formats_available_formats' => (
116 is => 'ro',
117 isa => HashRef,
118 init_arg => undef,
119 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
120 0 } },
121 1 );
122
123 has 'datetime_formats_append_item' => (
124 is => 'ro',
125 isa => HashRef,
126 init_arg => undef,
127 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
128 0 } },
129 1 );
130
131 has 'datetime_formats_interval' => (
132 is => 'ro',
133 isa => HashRef,
134 init_arg => undef,
135 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
136 0 } },
137 1 );
138
139 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
140
141 1 1;
142
143 # vim: tabstop=4
« En/Latn/Dg.pm ↑ Summary En/Latn/Ai.pm »