blib/lib/Catmandu/Fix/downcase.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Catmandu/Fix/count.pm ↑ Summary blib/lib/Catmandu/Fix/flatten.pm »
1 package Catmandu::Fix::downcase;
2  
3 2 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 our $VERSION = '1.0201_02';
6  
7 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Catmandu::Fix::Has;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 has path => (fix_arg => 1);
12  
13 2 with 'Catmandu::Fix::SimpleGetValue';
14  
15 sub emit_value {
16 2 ▶ my ($self, $var) = @_;
Subroutine emit_value: called CC=1 SCAR=0.0
Pod undocumented
17 2 "${var} = lc(as_utf8(${var})) if is_string(${var});";
18 }
19  
20 2 1;
21  
22 __END__
23  
24 =pod
25  
26 =head1 NAME
27  
28 Catmandu::Fix::downcase - lowercase the value of a field
29  
30 =head1 SYNOPSIS
31  
32 # Lowercase 'foo'. E.g. foo => 'BAR'
33 downcase(foo) # foo => 'bar'
34  
35 =head1 SEE ALSO
36  
37 L<Catmandu::Fix>
38  
39 =cut
« blib/lib/Catmandu/Fix/count.pm ↑ Summary blib/lib/Catmandu/Fix/flatten.pm »