blib/lib/Devel/REPL/Plugin/DDP.pm

filter: Statementstmt 58.3% 14 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 58.0% 18 / 31 CC 3 SCAR 17.4
CC
3
Cov
54%
__ANON__
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
↑ Summary
1 package Devel::REPL::Plugin::DDP;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use 5.008_005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 our $VERSION = '0.05';
6  
7 1 ▶use Devel::REPL::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Data::Printer use_prototypes => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶around 'format_result' => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
11 0 my $orig = shift;
12 0 my $self = shift;
13 0 my @to_dump = @_;
14 0 my $out;
15 0 for (@to_dump) {
16 0 my $buf;
17 0 p(\$_,
18 output => \$buf,
19 colored => 1,
20 caller_info => 0 );
21 0 $out .= $buf;
22 }
23 0 ▶ chomp $out if defined $out;
Branch: 1 branch
BranchTrueFalseTotal
if defined $out 0 0 0
24 0 $self->$orig($out);
25 1 };
26  
27 1 1;
28  
29 __END__
↑ Summary