Simple/Util.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 75.0% 18 / 24 CC 2 SCAR 6.8
CC
2
Cov
74%
debug
3.5
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
↑ Summary Simple.pm »
1 package IPC::Simple::Util;
2 4 $IPC::Simple::Util::VERSION = '0.03';
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 our @EXPORT = qw(
9 debug
10 );
11  
12 sub debug {
13 45 ▶ if ($ENV{IPC_SIMPLE_DEBUG}) {
Subroutine debug: called CC=2 SCAR=12.4
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if ($ENV{"IPC_SIMPLE_DEBUG"}) 0 45 45
14 0 my $msg = sprintf shift, @_;
15 0 my ($pkg, $file, $line) = caller;
16 0 my $ts = time;
17 0 warn "<$pkg:$line | $ts> $msg\n";
18 }
19 }
20  
21 4 1;
22  
23 __END__
↑ Summary Simple.pm »