FrenchRevolutionary/Locale.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 27 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
load
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« FrenchRevolutionary.pm ↑ Summary FrenchRevolutionary/Locale/en.pm »
1 # -*- encoding: utf-8; indent-tabs-mode: nil -*-
2 #
3 # Perl DateTime extension for providing localised strings for the French Revolutionary calendar
4 # Copyright (c) 2003, 2004, 2010, 2011, 2014, 2016, 2019, 2021 Jean Forget. All rights reserved.
5 #
6 # See the license in the embedded documentation below.
7 #
8  
9 package DateTime::Calendar::FrenchRevolutionary::Locale;
10  
11 17 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 17 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 17 $VERSION = '0.17'; # same as parent module DT::C::FR
17  
18 1393 ▶sub load {
Subroutine load: called CC=2 SCAR=6.9
Pod documented
19 1393 my ($self, $lang) = @_;
20 1393 my $real_class = "DateTime::Calendar::FrenchRevolutionary::Locale::$lang";
21 1393 eval "require $real_class";
22 1393 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 1 1392 1393
23 1392 return $real_class->new();
24 }
25 # A module must return a true value. Traditionally, a module returns 1.
26 # But this module is a revolutionary one, so it discards all old traditions.
27 17 "Amour sacré de la patrie, conduis soutiens nos bras vengeurs.";
28  
29 __END__
« FrenchRevolutionary.pm ↑ Summary FrenchRevolutionary/Locale/en.pm »