lib/BioX/Workflow/Command/run/Rules/Directives/Types/Glob.pm

filter: Statementstmt 58.3% 14 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 54.5% 18 / 33 CC 2 SCAR 9.4
CC
2
Cov
54%
process_directive_glob
6.0
__ANON__
2.0
BEGIN
1.0
CRAP 2.6
« lib/BioX/Workflow/Command/run/Rules/Directives/Types/Array.pm ↑ Summary lib/BioX/Workflow/Command/add.pm »
1 package BioX::Workflow::Command::run::Rules::Directives::Types::Glob;
2  
3 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use File::Glob;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶after 'BUILD' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
9 0 my $self = shift;
10  
11 0 $self->set_register_types(
12 'glob',
13 {
14 builder => 'create_reg_attr',
15 lookup => ['.*_glob$']
16 }
17 );
18  
19 0 $self->set_register_process_directives( 'glob',
20 { builder => 'process_directive_glob', lookup => ['.*_glob$'] } );
21 1 };
22  
23 0 ▶sub process_directive_glob {
Subroutine process_directive_glob: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my $self = shift;
25 0 my $k = shift;
26 0 my $v = shift;
27  
28 0 ▶ return if $k eq 'sample_glob';
Branch: 1 branch
BranchTrueFalseTotal
if $k eq "sample_glob" 0 0 0
29  
30 0 my $text = $self->interpol_directive($v);
31 0 my @data = glob($text);
32 0 $self->$k( \@data );
33 }
34  
35 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 1 1;
« lib/BioX/Workflow/Command/run/Rules/Directives/Types/Array.pm ↑ Summary lib/BioX/Workflow/Command/add.pm »