blib/lib/PDL/NiceSlice/FilterSimple.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 87.5% 28 / 32 CC 4 SCAR 6.8
CC
4
Cov
88%
code_no_comments
3.2
__ANON__
2.1
BEGIN
1.0
CRAP 2.0
« blib/lib/PDL/NiceSlice/ModuleCompile.pm ↑ Summary blib/lib/PDL/Demos/BAD_demo.pm »
1 # This is the new Filter::Simple engine for PDL::NiceSlice
2 #
3 6 ▶use Filter::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 {
8 6 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 39 ▶sub PDL::NiceSlice::FilterSimple::code_no_comments {
Subroutine code_no_comments: called CC=3 SCAR=11.7
Pod undocumented
10 39 ▶ print STDERR "***** Input: \n$_\n" if $PDL::NiceSlice::debug_filter;
Branch: 1 branch
BranchTrueFalseTotal
if $PDL::NiceSlice::debug_filter 0 39 39
11 39 $_ = perldlpp('PDL::NiceSlice', $_);
12 39 ▶ print STDERR "***** Output: $_\n" if $PDL::NiceSlice::debug_filter;
Branch: 1 branch
BranchTrueFalseTotal
if $PDL::NiceSlice::debug_filter 0 39 39
13 }
14 }
15  
16 6 FILTER_ONLY
17 code_no_comments => \&PDL::NiceSlice::FilterSimple::code_no_comments,
18 5 ▶ all => sub { print STDERR "*** Final: $_\n" if $PDL::NiceSlice::debug_filter };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
if $PDL::NiceSlice::debug_filter 0 5 5
19  
20 6 1;
« blib/lib/PDL/NiceSlice/ModuleCompile.pm ↑ Summary blib/lib/PDL/Demos/BAD_demo.pm »