PerlStone2015/13overloading.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 53.3% 16 / 30 CC 3 SCAR 18.7
CC
3
Cov
52%
main
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« PerlStone2015/19commandline.pm ↑ Summary PerlStone2015/fib.pm »
1 package Benchmark::Perl::Formance::Plugin::PerlStone2015::13overloading;
2 1 our $AUTHORITY = 'cpan:SCHWIGON';
3 # ABSTRACT: benchmark - perl 13 - overloading
4 1 $Benchmark::Perl::Formance::Plugin::PerlStone2015::13overloading::VERSION = '0.002';
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #############################################################
9 # #
10 # Benchmark Code ahead - Don't touch without strong reason! #
11 # #
12 #############################################################
13  
14 1 ▶use Benchmark ':hireswallclock';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 my @stuff;
17  
18 sub main
19 0 ▶{
Subroutine main: not called CC=3 SCAR=24.8
Pod undocumented
20 0 my ($options) = @_;
21  
22 0 my $results;
23 0 eval {
24 0 $results = {
25 };
26 };
27  
28 0 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 0 0
29 0 ▶ warn $@ if $options->{verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $options->{"verbose"} 0 0 0
30 0 $results = { failed => $@ };
31 }
32  
33 0 return $results;
34 }
35  
36 1 1;
37  
38 __END__
« PerlStone2015/19commandline.pm ↑ Summary PerlStone2015/fib.pm »