Reply/Plugin/DataDumper.pm

filter: Statementstmt 68.1% 15 / 22 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 50.0% 1 / 2 totaltotal 58.8% 20 / 34 CC 3 SCAR 16.6
CC
3
Cov
58%
mangle_result
12.0
new
2.0
BEGIN
1.0
CRAP 5.2
« Reply/Plugin/Nopaste.pm ↑ Summary Reply/Config.pm »
1 package Reply::Plugin::DataDumper;
2 1 our $AUTHORITY = 'cpan:DOY';
3 1 $Reply::Plugin::DataDumper::VERSION = '0.42';
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 # ABSTRACT: format results using Data::Dumper
7  
8 1 ▶use base 'Reply::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $class = shift;
15  
16 0 $Data::Dumper::Terse = 1;
17 0 $Data::Dumper::Sortkeys = 1;
18  
19 0 return $class->SUPER::new(@_);
20 }
21  
22 0 ▶sub mangle_result {
Subroutine mangle_result: not called CC=3 SCAR=24.8
Pod documented
23 0 my $self = shift;
24 0 my (@result) = @_;
25 0 ▶ return Dumper(@result == 0 ? () : @result == 1 ? $result[0] : \@result);
Branch: 2 branches
BranchTrueFalseTotal
@result == 0 ? : 0 0 0
@result == 1 ? : 0 0 0
26 }
27  
28 1 1;
29  
30 __END__
« Reply/Plugin/Nopaste.pm ↑ Summary Reply/Config.pm »