Widget/Filter/Whitespace.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 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::Whitespace;
2  
3 use warnings;
4 use strict;
5 use base 'HTML::Widget::Filter';
6  
7 =head1 NAME
8  
9 HTML::Widget::Filter::Whitespace - Whitespace Filter
10  
11 =head1 SYNOPSIS
12  
13 my $f = $widget->filter( 'Whitespace', 'foo' );
14  
15 =head1 DESCRIPTION
16  
17 Whitespace Filter.
18  
19 =head1 METHODS
20  
21 =head2 filter
22  
23 =cut
24  
25 sub filter {
26 my ( $self, $value ) = @_;
27 $value =~ s/\s+//g;
28 return $value;
29 }
30  
31 =head1 AUTHOR
32  
33 Sebastian Riedel, C<sri@oook.de>
34  
35 =head1 LICENSE
36  
37 This library is free software, you can redistribute it and/or modify it under
38 the same terms as Perl itself.
39  
40 =cut
41  
42 1;