File Coverage

blib/lib/Regexp/Common/whitespace.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Regexp::Common::whitespace;
2              
3 71     71   561 use 5.10.0;
  71         155  
4              
5 71     71   234 use strict;
  71         77  
  71         1470  
6 71     71   212 use warnings;
  71         71  
  71         1530  
7 71     71   253 no warnings 'syntax';
  71         79  
  71         2076  
8              
9 71     71   266 use Regexp::Common qw /pattern clean no_defaults/;
  71         91  
  71         346  
10              
11             our $VERSION = '2016060801';
12              
13             pattern name => [qw (ws crop)],
14             create => '(?:^\s+|\s+$)',
15             subs => sub {$_[1] =~ s/^\s+//; $_[1] =~ s/\s+$//;}
16             ;
17              
18              
19             1;
20              
21             __END__