blib/lib/File/Find/Rule/Dicom.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::Dicom;
2  
3 # Pragmas.
4 3 ▶use base qw(File::Find::Rule);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # Modules.
9 3 ▶use Dicom::File::Detect qw(dicom_detect_file);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # Version.
12 3 our $VERSION = 0.04;
13  
14 # Detect DICOM file.
15 sub File::Find::Rule::dicom_file {
16 1 ▶ my $file_find_rule = shift;
Subroutine dicom_file: called CC=1 SCAR=0.0
Pod undocumented
17 1 my $self = $file_find_rule->_force_object;
18 return $self->file->exec(sub{
19 2 ▶ my $file = shift;
Subroutine __ANON__: called CC=1 SCAR=0.0
20 2 return dicom_detect_file($file);
21 1 });
22 }
23  
24 3 1;
25  
26 __END__
↑ Summary