Catmandu/Fix/upcase.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Fix/uniq.pm ↑ Summary Catmandu/Fix/uri_decode.pm »
1 package Catmandu::Fix::upcase;
2  
3 8 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 our $VERSION = '1.2025';
6  
7 8 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 8 ▶use Catmandu::Util::Path qw(as_path);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 8 ▶use Catmandu::Util qw(as_utf8);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 8 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 8 ▶use Catmandu::Fix::Has;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 8 with 'Catmandu::Fix::Builder';
14  
15 8 has path => (fix_arg => 1);
16  
17 13 ▶sub _build_fixer {
Subroutine _build_fixer: called CC=1 SCAR=0.0
18 13 my ($self) = @_;
19 13 ▶ as_path($self->path)->updater(if_string => sub {uc(as_utf8($_[0]))});
Subroutine __ANON__: called CC=1 SCAR=0.0
20 }
21  
22 8 1;
23  
24 __END__
« Catmandu/Fix/uniq.pm ↑ Summary Catmandu/Fix/uri_decode.pm »