blib/lib/HTML/FormFu/I18N.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 11 | 12 | 91.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTML::FormFu::I18N; | ||||||
2 | |||||||
3 | 31 | 31 | 126 | use strict; | |||
31 | 37 | ||||||
31 | 1454 | ||||||
4 | our $VERSION = '2.05'; # VERSION | ||||||
5 | |||||||
6 | 31 | 31 | 107 | use Moose; | |||
31 | 35 | ||||||
31 | 215 | ||||||
7 | |||||||
8 | extends 'Locale::Maketext'; | ||||||
9 | |||||||
10 | *loc = \&localize; | ||||||
11 | |||||||
12 | sub localize { | ||||||
13 | 49 | 49 | 0 | 74 | my $self = shift; | ||
14 | |||||||
15 | 49 | 241 | return $self->maketext(@_); | ||||
16 | } | ||||||
17 | |||||||
18 | __PACKAGE__->meta->make_immutable( inline_constructor => 0 ); | ||||||
19 | |||||||
20 | 1; |