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

filter: Statementstmt 66.6% 10 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 61.9% 13 / 21 CC 1 SCAR 3.4
CC
1
Cov
67%
create_HASH_attr
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.4
« lib/BioX/Workflow/Command/run/Rules/Directives/Sample.pm ↑ Summary lib/BioX/Workflow/Command/run/Rules/Exceptions/OneRuleName.pm »
1 package BioX::Workflow::Command::run::Rules::Directives::Types::Hash;
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 0 ▶sub create_HASH_attr {
Subroutine create_HASH_attr: not called CC=1 SCAR=6.9
Pod undocumented
7 0 my $self = shift;
8 0 my $meta = shift;
9 0 my $k = shift;
10  
11 $meta->add_attribute(
12 $k => (
13 # traits => ['Hash'],
14 isa => 'HashRef',
15 is => 'rw',
16 clearer => "clear_$k",
17 0 ▶ default => sub { {} },
Subroutine __ANON__: not called CC=1 SCAR=6.9
18 # handles => {
19 # "get_$k" => 'get',
20 # "has_no_$k" => 'is_empty',
21 # "num_$k" => 'count',
22 # "$k" . "_pairs" => 'kv',
23 # },
24 )
25 0 );
26 }
27  
28 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 1;
« lib/BioX/Workflow/Command/run/Rules/Directives/Sample.pm ↑ Summary lib/BioX/Workflow/Command/run/Rules/Exceptions/OneRuleName.pm »