blib/lib/CLDR/Number/Format/Decimal.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 50.0% 1 / 2 totaltotal 95.8% 23 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/CLDR/Number/Format/Percent.pm ↑ Summary blib/lib/CLDR/Number.pm »
1 package CLDR::Number::Format::Decimal;
2  
3 10 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 our $VERSION = '0.00_03';
7  
8 10 with qw( CLDR::Number::Role::Format );
9  
10 10 has infinity => (
11 is => 'rw',
12 );
13  
14 10 has nan => (
15 is => 'rw',
16 );
17  
18 10 has _pattern_type => (
19 is => 'ro',
20 default => 'decimal',
21 );
22  
23 after _trigger_locale => sub {
24 26 ▶ my ($self) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
25  
26 26 $self->_build_signs(qw{ infinity nan });
27 10 };
28  
29 ▶sub BUILD {}
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
30  
31 sub format {
32 105 ▶ my ($self, $num) = @_;
Subroutine format: called CC=1 SCAR=0.0
Pod documented
33  
34 105 return $self->_format_number($num);
35 }
36  
37 10 1;
38  
39 __END__
« blib/lib/CLDR/Number/Format/Percent.pm ↑ Summary blib/lib/CLDR/Number.pm »