blib/lib/File/Find/Rule/DWG.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package File::Find::Rule::DWG;
2  
3 3 ▶use base qw(File::Find::Rule);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use CAD::AutoCAD::Detect qw(detect_dwg_file);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = 0.01;
10  
11 # Detect DWG.
12 sub File::Find::Rule::dwg {
13 1 ▶ my $file_find_rule = shift;
Subroutine dwg: called CC=1 SCAR=0.0
Pod undocumented
14 1 my $self = $file_find_rule->_force_object;
15 return $self->file->exec(sub{
16 4 ▶ my $file = shift;
Subroutine __ANON__: called CC=1 SCAR=0.0
17 4 return detect_dwg_file($file);
18 1 });
19 }
20  
21 3 1;
22  
23 __END__
↑ Summary