File Coverage

blib/lib/DateTime/Format/Human/Duration/Simple/Locale/fr.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package DateTime::Format::Human::Duration::Simple::Locale::fr;
2 1     1   1013 use Moose;
  1         2  
  1         8  
3 1     1   6449 use namespace::autoclean;
  1         2  
  1         10  
4              
5             extends 'DateTime::Format::Human::Duration::Simple::Locale';
6              
7             has '+serial_comma' => (
8             default => 0,
9             );
10              
11             override '_build_units' => sub {
12             my $self = shift;
13              
14             return {
15             and => [ 'et' ],
16              
17             year => [ 'an', 'ans' ],
18             month => [ 'mois', 'mois' ],
19             week => [ 'semaine', 'semaines' ],
20             day => [ 'jour', 'jours' ],
21             hour => [ 'heure', 'heures' ],
22             minute => [ 'minute', 'minutes' ],
23             second => [ 'seconde', 'secondes' ],
24             millisecond => [ 'milliseconde', 'millisecondes' ],
25             nanosecond => [ 'nanoseconde', 'nanosecondes' ],
26             };
27             };
28              
29             __PACKAGE__->meta->make_immutable;
30              
31             1;