blib/lib/HTML/Shakan/Filter/Hiragana.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 23 | 24 | 95.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTML::Shakan::Filter::Hiragana; | ||||||
2 | 1 | 1 | 544 | use strict; | |||
1 | 1 | ||||||
1 | 23 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 21 | ||||||
4 | 1 | 1 | 4 | use Mouse; | |||
1 | 2 | ||||||
1 | 4 | ||||||
5 | with 'HTML::Shakan::Role::Filter'; | ||||||
6 | 1 | 82 | use Lingua::JA::Regular::Unicode qw( | ||||
7 | katakana2hiragana | ||||||
8 | 1 | 1 | 255 | ); | |||
1 | 1 | ||||||
9 | |||||||
10 | sub filter { | ||||||
11 | 1 | 1 | 0 | 2 | my ($self, $val) = @_; | ||
12 | 1 | 4 | katakana2hiragana($val); | ||||
13 | } | ||||||
14 | |||||||
15 | 1 | 1 | 4 | no Mouse; | |||
1 | 2 | ||||||
1 | 3 | ||||||
16 | __PACKAGE__->meta->make_immutable; | ||||||
17 | __END__ |