blib/lib/HTML/Shakan/Filter/KatakanaZ.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::KatakanaZ; | ||||||
2 | 1 | 1 | 1478 | use strict; | |||
1 | 2 | ||||||
1 | 41 | ||||||
3 | 1 | 1 | 7 | use warnings; | |||
1 | 1 | ||||||
1 | 31 | ||||||
4 | 1 | 1 | 25 | use Mouse; | |||
1 | 2 | ||||||
1 | 9 | ||||||
5 | with 'HTML::Shakan::Role::Filter'; | ||||||
6 | 1 | 105 | use Lingua::JA::Regular::Unicode qw( | ||||
7 | hiragana2katakana | ||||||
8 | katakana_h2z | ||||||
9 | 1 | 1 | 414 | ); | |||
1 | 2 | ||||||
10 | |||||||
11 | sub filter { | ||||||
12 | 1 | 1 | 0 | 3 | my ($self, $val) = @_; | ||
13 | 1 | 4 | hiragana2katakana(katakana_h2z($val)); | ||||
14 | } | ||||||
15 | |||||||
16 | 1 | 1 | 4 | no Mouse; | |||
1 | 2 | ||||||
1 | 5 | ||||||
17 | __PACKAGE__->meta->make_immutable; | ||||||
18 | __END__ |