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 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 Dicom::File::Detect qw(dicom_detect_file);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = 0.05;
10  
11 # Detect DICOM file.
12 1 ▶sub File::Find::Rule::dicom_file {
Subroutine dicom_file: called CC=1 SCAR=0.0
Pod undocumented
13 1 my $file_find_rule = shift;
14 1 my $self = $file_find_rule->_force_object;
15 2 ▶ return $self->file->exec(sub{
Subroutine __ANON__: called CC=1 SCAR=0.0
16 2 my $file = shift;
17 2 return dicom_detect_file($file);
18 1 });
19 }
20  
21 3 1;
22  
23 __END__
↑ Summary