Catmandu/Fix/uri_decode.pm

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