Jaipo/Logger.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 3 totaltotal 56.0% 14 / 25 CC 2 SCAR 9.8
CC
2
Cov
65%
info
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Jaipo/Notify.pm ↑ Summary Jaipo/Service.pm »
1 package Jaipo::Logger;
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 sub new {
7 1 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8  
9 1 my $self = {};
10  
11  
12 1 bless $self, $class;
13 1 return $self;
14 }
15  
16  
17 ▶sub warn {
Subroutine warn: not called CC=1 SCAR=0.0
Pod undocumented
18  
19  
20 }
21  
22 sub info {
23 0 ▶ my $self = shift;
Subroutine info: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my $line = shift;
25 0 my @args = @_;
26 0 ▶ printf( $line . "\n" , @args ) if ( $line );
Branch: 1 branch
BranchTrueFalseTotal
if $line 0 0 0
27 }
28  
29  
30 2 1;
« Jaipo/Notify.pm ↑ Summary Jaipo/Service.pm »