Hr/Latn/Ba.pm

filter: Statementstmt 57.8% 44 / 76 Branchbran 0.0% 0 / 30 Conditioncond 0.0% 0 / 20 MC/DCmcdc 0.0% 0 / 13 Subroutinesub 43.4% 10 / 23 Podpod n/a totaltotal 33.3% 54 / 162 CC 24 SCAR 57.5
CC
24
Cov
35%
__ANON__
600.0
__ANON__
2.0
__ANON__
2.0
CRAP 313.8
« Hr.pm ↑ Summary Hr/Latn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Hr::Latn::Ba - Package for language Croatian
6
7 =cut
8
9 package Locale::CLDR::Locales::Hr::Latn::Ba;
10 # This file auto generated from Data\common\main\hr_BA.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::Hr::Latn');
27 has 'currencies' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 'BAM' => {
33 symbol => 'KM',
34 },
35 } },
36 1 );
37
38
39 has 'calendar_days' => (
40 is => 'ro',
41 isa => HashRef,
42 init_arg => undef,
43 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
44 0 'gregorian' => {
45 'stand-alone' => {
46 narrow => {
47 mon => 'P',
48 tue => 'U',
49 wed => 'S',
50 thu => 'Č',
51 fri => 'P',
52 sat => 'S',
53 sun => 'N'
54 },
55 },
56 },
57 } },
58 1 );
59
60 has 'calendar_quarters' => (
61 is => 'ro',
62 isa => HashRef,
63 init_arg => undef,
64 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
65 0 'gregorian' => {
66 'format' => {
67 abbreviated => {0 => '1. kv.',
68 1 => '2. kv.',
69 2 => '3. kv.',
70 3 => '4. kv.'
71 },
72 },
73 },
74 } },
75 1 );
76
77 has 'day_period_data' => (
78 is => 'ro',
79 isa => CodeRef,
80 init_arg => undef,
81 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=24 SCAR=64.0
82 # Time in hhmm format
83 0 my ($self, $type, $time, $day_period_type) = @_;
84 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
85 SWITCH:
86 0 for ($type) {
87 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
88 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
89 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
90 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
91 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
92 && $time < 1800;
93 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
94 && $time < 2100;
95 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
96 && $time < 1200;
97 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
98 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
99 }
100 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
101 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
102 && $time < 1800;
103 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
104 && $time < 2100;
105 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
106 && $time < 1200;
107 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
108 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
109 }
110 0 last SWITCH;
111 }
112 }
113 0 } },
114 1 );
115
116 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
117 0 my ($orig, $self) = @_;
118 0 return $self->$orig;
119 1 };
120
121 has 'eras' => (
122 is => 'ro',
123 isa => HashRef,
124 init_arg => undef,
125 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
126 0 'gregorian' => {
127 },
128 } },
129 1 );
130
131 has 'date_formats' => (
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 'gregorian' => {
137 'short' => q{d. M. yy.},
138 },
139 } },
140 1 );
141
142 has 'time_formats' => (
143 is => 'ro',
144 isa => HashRef,
145 init_arg => undef,
146 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
147 0 'gregorian' => {
148 },
149 } },
150 1 );
151
152 has 'datetime_formats' => (
153 is => 'ro',
154 isa => HashRef,
155 init_arg => undef,
156 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
157 0 'gregorian' => {
158 },
159 } },
160 1 );
161
162 has 'datetime_formats_available_formats' => (
163 is => 'ro',
164 isa => HashRef,
165 init_arg => undef,
166 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
167 0 } },
168 1 );
169
170 has 'datetime_formats_append_item' => (
171 is => 'ro',
172 isa => HashRef,
173 init_arg => undef,
174 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
175 0 } },
176 1 );
177
178 has 'datetime_formats_interval' => (
179 is => 'ro',
180 isa => HashRef,
181 init_arg => undef,
182 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
183 0 } },
184 1 );
185
186 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
187
188 1 1;
189
190 # vim: tabstop=4
« Hr.pm ↑ Summary Hr/Latn.pm »