lib/Module/Build/Dumper.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Module/Build.pm ↑ Summary
1 package Module::Build::Dumper;
2 297 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 297 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 297 our $VERSION = '0.4234';
5  
6 # This is just a split-out of a wrapper function to do Data::Dumper
7 # stuff "the right way". See:
8 # http://groups.google.com/group/perl.module.build/browse_thread/thread/c8065052b2e0d741
9  
10 297 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 121 ▶sub _data_dump {
Subroutine _data_dump: called CC=1 SCAR=0.0
13 121 my ($self, $data) = @_;
14 121 return ("do{ my "
15 . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Sortkeys(1)->Dump()
16 . '$x; }')
17 }
18  
19 297 1;
« lib/Module/Build.pm ↑ Summary