Ta/Taml/Lk.pm

filter: Statementstmt 53.8% 42 / 78 Branchbran 0.0% 0 / 42 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 47.6% 10 / 21 Podpod n/a totaltotal 25.4% 52 / 204 CC 36 SCAR 67.5
CC
36
Cov
27%
__ANON__
1332.0
__ANON__
2.0
__ANON__
2.0
CRAP 856.8
« Ta.pm ↑ Summary Ta/Taml/My.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ta::Taml::Lk - Package for language Tamil
6
7 =cut
8
9 package Locale::CLDR::Locales::Ta::Taml::Lk;
10 # This file auto generated from Data\common\main\ta_LK.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::Ta::Taml');
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 'LKR' => {
33 symbol => 'Rs.',
34 },
35 } },
36 1 );
37
38
39 has 'day_period_data' => (
40 is => 'ro',
41 isa => CodeRef,
42 init_arg => undef,
43 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=36 SCAR=71.9
44 # Time in hhmm format
45 0 my ($self, $type, $time, $day_period_type) = @_;
46 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
47 SWITCH:
48 0 for ($type) {
49 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
50 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
51 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
52 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
53 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1400 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1400
$time >= 1200 $time < 1400
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1400
ABresult
0X0
100
111
54 && $time < 1400;
55 0 ▶ return 'afternoon2' if $time >= 1400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1400 and $time < 1600 0 0 0
Condition0%0/3
$time >= 1400 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1400 and $time < 1600
$time >= 1400 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1400B= $time < 1600
ABresult
0X0
100
111
56 && $time < 1600;
57 0 ▶ return 'evening1' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1800
$time >= 1600 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 1800
ABresult
0X0
100
111
58 && $time < 1800;
59 0 ▶ return 'evening2' 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
60 && $time < 2100;
61 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 500 0 0 0
Condition0%0/3
$time >= 300 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 500
$time >= 300 $time < 500
Truth table0%0/3
A and B
A= $time >= 300B= $time < 500
ABresult
0X0
100
111
62 && $time < 500;
63 0 ▶ return 'morning2' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $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 < 300;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 300 0 0 0
67 }
68 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
69 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1400 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1400
$time >= 1200 $time < 1400
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1400
ABresult
0X0
100
111
70 && $time < 1400;
71 0 ▶ return 'afternoon2' if $time >= 1400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1400 and $time < 1600 0 0 0
Condition0%0/3
$time >= 1400 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1400 and $time < 1600
$time >= 1400 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1400B= $time < 1600
ABresult
0X0
100
111
72 && $time < 1600;
73 0 ▶ return 'evening1' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1800
$time >= 1600 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 1800
ABresult
0X0
100
111
74 && $time < 1800;
75 0 ▶ return 'evening2' 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
76 && $time < 2100;
77 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 500 0 0 0
Condition0%0/3
$time >= 300 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 500
$time >= 300 $time < 500
Truth table0%0/3
A and B
A= $time >= 300B= $time < 500
ABresult
0X0
100
111
78 && $time < 500;
79 0 ▶ return 'morning2' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
80 && $time < 1200;
81 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
82 0 ▶ return 'night1' if $time < 300;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 300 0 0 0
83 }
84 0 last SWITCH;
85 }
86 }
87 0 } },
88 1 );
89
90 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
91 0 my ($orig, $self) = @_;
92 0 return $self->$orig;
93 1 };
94
95 has 'eras' => (
96 is => 'ro',
97 isa => HashRef,
98 init_arg => undef,
99 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
100 0 'gregorian' => {
101 },
102 } },
103 1 );
104
105 has 'date_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 'time_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 'gregorian' => {
121 'full' => q{HH:mm:ss zzzz},
122 'long' => q{HH:mm:ss z},
123 'medium' => q{HH:mm:ss},
124 'short' => q{HH:mm},
125 },
126 } },
127 1 );
128
129 has 'datetime_formats' => (
130 is => 'ro',
131 isa => HashRef,
132 init_arg => undef,
133 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
134 0 'gregorian' => {
135 },
136 } },
137 1 );
138
139 has 'datetime_formats_available_formats' => (
140 is => 'ro',
141 isa => HashRef,
142 init_arg => undef,
143 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
144 0 } },
145 1 );
146
147 has 'datetime_formats_append_item' => (
148 is => 'ro',
149 isa => HashRef,
150 init_arg => undef,
151 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
152 0 } },
153 1 );
154
155 has 'datetime_formats_interval' => (
156 is => 'ro',
157 isa => HashRef,
158 init_arg => undef,
159 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
160 0 } },
161 1 );
162
163 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
164
165 1 1;
166
167 # vim: tabstop=4
« Ta.pm ↑ Summary Ta/Taml/My.pm »