Fix/latex_decode.pm

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