blib/lib/App/optex/textconv/default.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 11 | 11 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::optex::textconv::default; | ||||||
2 | |||||||
3 | 1 | 1 | 12 | use v5.14; | |||
1 | 4 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 31 | ||||||
5 | |||||||
6 | 1 | 1 | 427 | use App::optex::textconv::Converter 'import'; | |||
1 | 2 | ||||||
1 | 9 | ||||||
7 | |||||||
8 | our @CONVERTER = ( | ||||||
9 | # moved to pdf.pm | ||||||
10 | # [ qr/\.pdf$/i => "pdftotext -nopgbrk \"%s\" -" ], | ||||||
11 | [ qr/\.jpe?g$/i => "exif \"%s\"" ], | ||||||
12 | [ qr[^https?://] => "w3m -dump \"%s\"" ], | ||||||
13 | ); | ||||||
14 | |||||||
15 | 1; |