blib/lib/Scalar/DDie.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 CC 2 SCAR 2.5
CC
2
Cov
100%
ddie
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Scalar::DDie;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 our $VERSION = '0.0.2';
6 2 ▶use parent qw/Exporter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our @EXPORT = qw(ddie);
9 2 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub ddie($) {
Subroutine ddie: called CC=2 SCAR=6.9
Pod undocumented
12 2 ▶ if (defined($_[0])) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_[0]) { } 1 1 2
13 1 return $_[0];
14 } else {
15 1 Carp::croak("The value is not defined.");
16 }
17 }
18  
19 2 1;
20 __END__
↑ Summary