Common/whitespace.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/profanity.pm ↑ Summary
1 package Regexp::Common::whitespace;
2  
3 71 ▶use 5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 71 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 71 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 71 ▶no warnings 'syntax';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 71 ▶use Regexp::Common qw /pattern clean no_defaults/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 71 our $VERSION = '2024080801';
12  
13 pattern name => [qw (ws crop)],
14 create => '(?:^\s+|\s+$)',
15 4 ▶ subs => sub {$_[1] =~ s/^\s+//; $_[1] =~ s/\s+$//;}
Subroutine __ANON__: called CC=1 SCAR=0.0
16 71 ;
17  
18  
19 71 1;
20  
21 __END__
« Common/profanity.pm ↑ Summary