Jacquard/Actor/Role/DataPrinter.pm

filter: Statementstmt 63.6% 14 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 62.0% 18 / 29 CC 2 SCAR 5.5
CC
2
Cov
58%
_data_printer
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« Jacquard/Role/Render/QnD/Size/Direct.pm ↑ Summary Jacquard/Role/Geometry/Position2D.pm »
1 1 ▶use Renard::Incunabula::Common::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Intertangle::Jacquard::Actor::Role::DataPrinter;
3 # ABSTRACT: Role to do Data::Printer things
4 1 $Intertangle::Jacquard::Actor::Role::DataPrinter::VERSION = '0.002';
5 1 ▶use Mu::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 requires '_data_printer_internal';
8  
9 0 ▶sub _data_printer {
Subroutine _data_printer: not called CC=2 SCAR=11.6
10 0 my ($self, $prop) = @_;
11  
12 1 ▶ use Module::Load;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶ BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.4
14 1 eval {
15 1 autoload Data::Printer::Filter;
16 0 autoload Term::ANSIColor;
17 };
18 }
19  
20 0 my $text = '';
21  
22 0 ▶ $text .= $prop->{colored} ? "(@{[colored(['green'], ref($self))]}) " : "(@{[ ref($self) ]}) ";
Branch: 1 branch
BranchTrueFalseTotal
$prop->{'colored'} ? : 0 0 0
23 0 $text .= Data::Printer::np($self->_data_printer_internal, %$prop, );
24  
25 0 $text;
26 }
27  
28 1 1;
29  
30 __END__
« Jacquard/Role/Render/QnD/Size/Direct.pm ↑ Summary Jacquard/Role/Geometry/Position2D.pm »