Fix/sfx_threshold.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SFX.pm ↑ Summary Fix/sfx_year_range.pm »
1 package Catmandu::Fix::sfx_threshold;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Catmandu::Util qw(:is);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Catmandu::SFX;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Catmandu::Fix::Has;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 has path => (fix_arg => 1);
10  
11 1 with 'Catmandu::Fix::SimpleGetValue';
12  
13 6 ▶sub emit_value {
Subroutine emit_value: called CC=1 SCAR=0.0
Pod undocumented
14 6 my ($self, $var, $fixer) = @_;
15 6 my $sfx = $fixer->capture(Catmandu::SFX->new());
16 6 "if (is_string(${var})) {" .
17 "${var} = ${sfx}->parse_sfx_threshold(${var})" .
18 "}";
19 }
20  
21 1 1;
22  
23 __END__
« SFX.pm ↑ Summary Fix/sfx_year_range.pm »