Data/Frame/Indexer/Role.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 94.7% 18 / 19 CC 2 SCAR 3.8
CC
2
Cov
93%
__ANON__
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Data/Frame/Examples.pm ↑ Summary PDL/StringfiableExtension.pm »
1 package Data::Frame::Indexer::Role;
2 12 $Data::Frame::Indexer::Role::VERSION = '0.006005';
3 # ABSTRACT: Role for Data::Frame indexer
4  
5 12 ▶use Data::Frame::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 12 ▶use Types::Standard qw(ArrayRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 12 ▶use Data::Frame::Types qw(ColumnLike);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 has indexer => (
12 is => 'ro',
13 isa => (
14 ArrayRef->plus_coercions( ColumnLike,
15 290 ▶ sub { ( $_->badflag ? $_->where( $_->isgood ) : $_ )->unpdl }
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->badflag ? : 290 0 290
16 )
17 12 ),
18 required => 1,
19 coerce => 1,
20 );
21  
22 12 1;
23  
24 __END__
« Data/Frame/Examples.pm ↑ Summary PDL/StringfiableExtension.pm »