Widget/Filter/UpperCase.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
filter
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::Widget::Filter::UpperCase;
2  
3 use warnings;
4 use strict;
5 use base 'HTML::Widget::Filter';
6  
7 =head1 NAME
8  
9 HTML::Widget::Filter::UpperCase - Upper Case Filter
10  
11 =head1 SYNOPSIS
12  
13 my $f = $widget->filter( 'UpperCase', 'foo' );
14  
15 =head1 DESCRIPTION
16  
17 Upper Case Filter.
18  
19 =head1 METHODS
20  
21 =head2 filter
22  
23 =cut
24  
25 sub filter {
26 my ( $self, $value ) = @_;
27 return uc $value;
28 }
29  
30 =head1 AUTHOR
31  
32 Lyo Kato, C<lyo.kato@gmail.com>
33  
34 =head1 LICENSE
35  
36 This library is free software, you can redistribute it and/or modify it under
37 the same terms as Perl itself.
38  
39 =cut
40  
41 1;