TreeValidator/Transformations.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 23 / 23 CC 2 SCAR 2.9
CC
2
Cov
100%
_boolean
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« TreeValidator/Branch.pm ↑ Summary TreeValidator/Result/Branch.pm »
1 package Data::TreeValidator::Transformations;
2 {
3 1 $Data::TreeValidator::Transformations::VERSION = '0.04';
4 }
5 # ABSTRACT: Common data transformations
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Sub::Exporter -setup => {
Subroutine BEGIN: called CC=1 SCAR=0.0
10 exports => [qw( boolean )],
11 1 };
12  
13 1 ▶sub boolean { \&_boolean }
Subroutine boolean: called CC=1 SCAR=0.0
Pod documented
14 3 ▶sub _boolean {
Subroutine _boolean: called CC=2 SCAR=6.9
15 3 my ($input) = @_;
16 3 ▶ return $input ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$input ? : 2 1 3
17 }
18  
19 1 1;
20  
21  
22 __END__
« TreeValidator/Branch.pm ↑ Summary TreeValidator/Result/Branch.pm »