blib/lib/Locale/CLDR/Locales/Tr/Any/Cy.pm

filter: Statementstmt 55.4% 41 / 74 Branchbran 0.0% 0 / 38 Conditioncond 0.0% 0 / 32 MC/DCmcdc 0.0% 0 / 21 Subroutinesub 50.0% 10 / 20 Podpod n/a totaltotal 27.5% 51 / 185 SCAR 60.1
CC
32
Cov
28%
__ANON__
1056.0
__ANON__
2.0
__ANON__
2.0
CRAP 406.7
« blib/lib/Locale/CLDR/Locales/Tr.pm ↑ Summary Build »
1 =encoding utf8
2  
3 =head1
4  
5 Locale::CLDR::Locales::Tr::Any::Cy - Package for language Turkish
6  
7 =cut
8  
9 package Locale::CLDR::Locales::Tr::Any::Cy;
10 # This file auto generated from Data/common/main/tr_CY.xml
11 # on Mon 11 Apr 5:40:25 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.34.1');
18  
19 1 ▶use v5.10.1;
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 if $^V ge v5.12.0, 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::Tr::Any');
27 has 'day_period_data' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 default => sub { sub {
32 # Time in hhmm format
33 0 ▶ my ($self, $type, $time, $day_period_type) = @_;
Subroutine __ANON__: not called CC=32 SCAR=69.6
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 'afternoon2' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1800 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 1900
$time >= 1800 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 1900
ABresult
0X0
100
111
44 && $time < 1900;
45 0 ▶ return 'evening1' if $time >= 1900
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2100
$time >= 1900 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2100
ABresult
0X0
100
111
46 && $time < 2100;
47 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1100 0 0 0
Condition0%0/3
$time >= 600 and $time < 1100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1100
$time >= 600 $time < 1100
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1100
ABresult
0X0
100
111
48 && $time < 1100;
49 0 ▶ return 'morning2' if $time >= 1100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1100 and $time < 1200 0 0 0
Condition0%0/3
$time >= 1100 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1100 and $time < 1200
$time >= 1100 $time < 1200
Truth table0%0/3
A and B
A= $time >= 1100B= $time < 1200
ABresult
0X0
100
111
50 && $time < 1200;
51 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
52 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
53 }
54 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
55 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
56 && $time < 1800;
57 0 ▶ return 'afternoon2' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1800 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 1900
$time >= 1800 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 1900
ABresult
0X0
100
111
58 && $time < 1900;
59 0 ▶ return 'evening1' if $time >= 1900
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2100
$time >= 1900 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2100
ABresult
0X0
100
111
60 && $time < 2100;
61 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1100 0 0 0
Condition0%0/3
$time >= 600 and $time < 1100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1100
$time >= 600 $time < 1100
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1100
ABresult
0X0
100
111
62 && $time < 1100;
63 0 ▶ return 'morning2' if $time >= 1100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1100 and $time < 1200 0 0 0
Condition0%0/3
$time >= 1100 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1100 and $time < 1200
$time >= 1100 $time < 1200
Truth table0%0/3
A and B
A= $time >= 1100B= $time < 1200
ABresult
0X0
100
111
64 && $time < 1200;
65 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
66 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
67 }
68 0 last SWITCH;
69 }
70 }
71 0 ▶ } },
Subroutine __ANON__: not called CC=1 SCAR=6.9
72 1 );
73  
74 around day_period_data => sub {
75 0 ▶ my ($orig, $self) = @_;
Subroutine __ANON__: not called CC=1 SCAR=6.9
76 0 return $self->$orig;
77 1 };
78  
79 has 'eras' => (
80 is => 'ro',
81 isa => HashRef,
82 init_arg => undef,
83 default => sub { {
84 0 ▶ 'gregorian' => {
Subroutine __ANON__: not called CC=1 SCAR=6.9
85 },
86 } },
87 1 );
88  
89 has 'date_formats' => (
90 is => 'ro',
91 isa => HashRef,
92 init_arg => undef,
93 default => sub { {
94 0 ▶ 'gregorian' => {
Subroutine __ANON__: not called CC=1 SCAR=6.9
95 },
96 } },
97 1 );
98  
99 has 'time_formats' => (
100 is => 'ro',
101 isa => HashRef,
102 init_arg => undef,
103 default => sub { {
104 0 ▶ 'gregorian' => {
Subroutine __ANON__: not called CC=1 SCAR=6.9
105 'full' => q{h:mm:ss a zzzz},
106 'long' => q{h:mm:ss a z},
107 'medium' => q{h:mm:ss a},
108 'short' => q{h:mm a},
109 },
110 } },
111 1 );
112  
113 has 'datetime_formats' => (
114 is => 'ro',
115 isa => HashRef,
116 init_arg => undef,
117 default => sub { {
118 0 ▶ 'gregorian' => {
Subroutine __ANON__: not called CC=1 SCAR=6.9
119 },
120 } },
121 1 );
122  
123 has 'datetime_formats_available_formats' => (
124 is => 'ro',
125 isa => HashRef,
126 init_arg => undef,
127 default => sub { {
128 0 ▶ } },
Subroutine __ANON__: not called CC=1 SCAR=6.9
129 1 );
130  
131 has 'datetime_formats_append_item' => (
132 is => 'ro',
133 isa => HashRef,
134 init_arg => undef,
135 default => sub { {
136 0 ▶ } },
Subroutine __ANON__: not called CC=1 SCAR=6.9
137 1 );
138  
139 has 'datetime_formats_interval' => (
140 is => 'ro',
141 isa => HashRef,
142 init_arg => undef,
143 default => sub { {
144 0 ▶ } },
Subroutine __ANON__: not called CC=1 SCAR=6.9
145 1 );
146  
147 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
148  
149 1 1;
150  
151 # vim: tabstop=4
« blib/lib/Locale/CLDR/Locales/Tr.pm ↑ Summary Build »