Ethiopic/ER.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 54 CC 4 SCAR 13.9
CC
4
Cov
0%
_sep
6.0
bc
6.0
ad
6.0
CRAP 4.0
1 package Date::Ethiopic::ER;
2 use utf8;
3  
4 BEGIN
5 {
6 require 5.000;
7  
8 use strict;
9 use warnings;
10 use vars qw(
11 %EritreanHolidays
12 %EritreanHolidaysTranscribed
13 );
14  
15 $VERSION = "0.16";
16  
17 #
18 # Legal Holidays, this will be localized later.
19 # Some verification is also needed.
20 #
21 # double check how leap year impacts christmas, my memory
22 # is that is moves backwars 29->28 following leap year
23 # such that it fixes on Jan. 7.
24 #
25 %EritreanHolidays =(
26 "ርእስ ዓመት" => [1,1], # መስከረም 1
27 "መስቀል ክቡር" => [17,1], # መስከረም 17
28 "ሓዲሽ ዓመት" => [22,4], # ታህሳስ 22/23 23 on leap year
29 "ልደተ ክርስቶስ" => [29,4], # ታኅሣሥ 29
30 "በዓል ጥምቀት" => [11,5], # ጥሪ 11
31 "መዓልቲ ደቀንስትዮ" => [29,6], # ለካቲት 29
32 "በዓል ሰራሕተኛ" => [24,8], # ሚያዝያ 24
33 "ሆሳዕና" => ['?',8], # ሚያዝያ - Palm Sunday
34 "የስቅለት በዓል" => ['?',8], # ሚያዝያ -Final Friday
35 "ትንሣኤ" => ['?',8], # ሚያዝያ -Final Sunday
36 "መዓልቲ ሓርነት (ዮሃና)" => [16,9], # ግንቦት 16
37 "መዓልቲ ስውኣት" => [23,10], # ሰነ 24/23 check this
38 "ም. ብረታዊ ቃልሲ" => [26,12], # ነሓሰ 26
39 );
40 %EritreanHolidaysTranscribed =(
41 );
42 }
43  
44  
45 sub _sep
46 {
47 ($_[0]->{_trans}) ? ", " : "፡ ";
48 }
49  
50  
51 sub bc
52 {
53 ($_[0]->{_trans}) ? "A/A" : "ዓ/ዓ";
54 }
55  
56  
57 sub ad
58 {
59 ($_[0]->{_trans}) ? "A/M" : "ዓ/ም";
60 }
61  
62  
63  
64 #########################################################
65 # Do not change this, Do not put anything below this.
66 # File must return "true" value at termination
67 1;
68 ##########################################################
69  
70 __END__