Ne/Deva/In.pm

filter: Statementstmt 56.7% 42 / 74 Branchbran 0.0% 0 / 34 Conditioncond 0.0% 0 / 26 MC/DCmcdc 0.0% 0 / 17 Subroutinesub 47.6% 10 / 21 Podpod n/a totaltotal 30.2% 52 / 172 CC 28 SCAR 61.6
CC
28
Cov
31%
__ANON__
812.0
__ANON__
2.0
__ANON__
2.0
CRAP 474.3
« Ne.pm ↑ Summary Ne/Deva.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ne::Deva::In - Package for language Nepali
6
7 =cut
8
9 package Locale::CLDR::Locales::Ne::Deva::In;
10 # This file auto generated from Data\common\main\ne_IN.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::Ne::Deva');
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=28 SCAR=67.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 < 1600 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
ABresult
0X0
100
111
42 && $time < 1600;
43 0 ▶ return 'afternoon2' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1900
$time >= 1600 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1600B= $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 < 2200 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2200
$time >= 1900 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2200
ABresult
0X0
100
111
46 && $time < 2200;
47 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
48 && $time < 1200;
49 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 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 < 1600 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
ABresult
0X0
100
111
54 && $time < 1600;
55 0 ▶ return 'afternoon2' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1900
$time >= 1600 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 1900
ABresult
0X0
100
111
56 && $time < 1900;
57 0 ▶ return 'evening1' if $time >= 1900
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2200
$time >= 1900 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2200
ABresult
0X0
100
111
58 && $time < 2200;
59 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
60 && $time < 1200;
61 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
62 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
63 }
64 0 last SWITCH;
65 }
66 }
67 0 } },
68 1 );
69
70 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
71 0 my ($orig, $self) = @_;
72 0 return $self->$orig;
73 1 };
74
75 has 'eras' => (
76 is => 'ro',
77 isa => HashRef,
78 init_arg => undef,
79 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
80 0 'gregorian' => {
81 },
82 } },
83 1 );
84
85 has 'date_formats' => (
86 is => 'ro',
87 isa => HashRef,
88 init_arg => undef,
89 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
90 0 'gregorian' => {
91 },
92 } },
93 1 );
94
95 has 'time_formats' => (
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 'full' => q{h:mm:ss a zzzz},
102 'long' => q{h:mm:ss a z},
103 'medium' => q{h:mm:ss a},
104 'short' => q{h:mm a},
105 },
106 } },
107 1 );
108
109 has 'datetime_formats' => (
110 is => 'ro',
111 isa => HashRef,
112 init_arg => undef,
113 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
114 0 'gregorian' => {
115 },
116 } },
117 1 );
118
119 has 'datetime_formats_available_formats' => (
120 is => 'ro',
121 isa => HashRef,
122 init_arg => undef,
123 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
124 0 } },
125 1 );
126
127 has 'datetime_formats_append_item' => (
128 is => 'ro',
129 isa => HashRef,
130 init_arg => undef,
131 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
132 0 } },
133 1 );
134
135 has 'datetime_formats_interval' => (
136 is => 'ro',
137 isa => HashRef,
138 init_arg => undef,
139 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
140 0 } },
141 1 );
142
143 has 'time_zone_names' => (
144 is => 'ro',
145 isa => HashRef,
146 init_arg => undef,
147 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
148 0 'India' => {
149 short => {
150 'standard' => q#IST#,
151 },
152 },
153 } }
154 1 );
155 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
156
157 1 1;
158
159 # vim: tabstop=4
« Ne.pm ↑ Summary Ne/Deva.pm »