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