Ee/Latn/Tg.pm

filter: Statementstmt 56.9% 41 / 72 Branchbran 0.0% 0 / 34 Conditioncond 0.0% 0 / 32 MC/DCmcdc 0.0% 0 / 21 Subroutinesub 50.0% 10 / 20 Podpod n/a totaltotal 28.4% 51 / 179 CC 30 SCAR 63.5
CC
30
Cov
30%
__ANON__
930.0
__ANON__
2.0
__ANON__
2.0
CRAP 570.0
« Ee.pm ↑ Summary Ee/Latn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ee::Latn::Tg - Package for language Ewe
6
7 =cut
8
9 package Locale::CLDR::Locales::Ee::Latn::Tg;
10 # This file auto generated from Data\common\main\ee_TG.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::Ee::Latn');
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=30 SCAR=68.4
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 '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
40 && $time < 1400;
41 0 ▶ return 'afternoon2' if $time >= 1400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1400 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1400 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1400 and $time < 1800
$time >= 1400 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1400B= $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 >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 500 0 0 0
Condition0%0/3
$time >= 400 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 500
$time >= 400 $time < 500
Truth table0%0/3
A and B
A= $time >= 400B= $time < 500
ABresult
0X0
100
111
46 && $time < 500;
47 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
48 && $time < 1200;
49 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
50 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
51 }
52 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 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 < 1800 0 0 0
Condition0%0/3
$time >= 1400 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1400 and $time < 1800
$time >= 1400 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1400B= $time < 1800
ABresult
0X0
100
111
56 && $time < 1800;
57 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
58 && $time < 2100;
59 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 500 0 0 0
Condition0%0/3
$time >= 400 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 500
$time >= 400 $time < 500
Truth table0%0/3
A and B
A= $time >= 400B= $time < 500
ABresult
0X0
100
111
60 && $time < 500;
61 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
62 && $time < 1200;
63 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
64 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
65 }
66 0 last SWITCH;
67 }
68 }
69 0 } },
70 1 );
71
72 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
73 0 my ($orig, $self) = @_;
74 0 return $self->$orig;
75 1 };
76
77 has 'eras' => (
78 is => 'ro',
79 isa => HashRef,
80 init_arg => undef,
81 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
82 0 'gregorian' => {
83 },
84 } },
85 1 );
86
87 has 'date_formats' => (
88 is => 'ro',
89 isa => HashRef,
90 init_arg => undef,
91 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
92 0 'gregorian' => {
93 },
94 } },
95 1 );
96
97 has 'time_formats' => (
98 is => 'ro',
99 isa => HashRef,
100 init_arg => undef,
101 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
102 0 'gregorian' => {
103 'full' => q{HH:mm:ss zzzz},
104 'long' => q{HH:mm:ss z},
105 'medium' => q{HH:mm:ss},
106 'short' => q{HH:mm},
107 },
108 } },
109 1 );
110
111 has 'datetime_formats' => (
112 is => 'ro',
113 isa => HashRef,
114 init_arg => undef,
115 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
116 0 'gregorian' => {
117 },
118 } },
119 1 );
120
121 has 'datetime_formats_available_formats' => (
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 } },
127 1 );
128
129 has 'datetime_formats_append_item' => (
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 } },
135 1 );
136
137 has 'datetime_formats_interval' => (
138 is => 'ro',
139 isa => HashRef,
140 init_arg => undef,
141 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
142 0 } },
143 1 );
144
145 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
146
147 1 1;
148
149 # vim: tabstop=4
« Ee.pm ↑ Summary Ee/Latn.pm »