textconv/tika.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 71.4% 15 / 21 CC 1 SCAR 2.2
CC
1
Cov
75%
to_text
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« textconv/pandoc.pm ↑ Summary textconv/ooxml/xslt.pm »
1 package App::optex::textconv::tika;
2  
3 1 our $VERSION = '1.08';
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use App::optex::textconv::Converter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our @CONVERTER = (
11 [ qr/\.doc[xm]?$/ => \&to_text ],
12 [ qr/\.ppt[xm]?$/ => \&to_text ],
13 [ qr/\.xls[xm]?$/ => \&to_text ],
14 );
15  
16 0 ▶sub to_text {
Subroutine to_text: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $file = shift;
18 0 my $format = q(tika --text "%s");
19 0 my $exec = sprintf $format, $file;
20 0 qx($exec);
21 }
22  
23 1 1;
« textconv/pandoc.pm ↑ Summary textconv/ooxml/xslt.pm »