OrePAN2/Logger.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 63.6% 14 / 22 CC 1 SCAR 3.4
CC
1
Cov
73%
info
2.0
warn
2.0
BEGIN
1.0
CRAP 1.4
« OrePAN2/Repository.pm ↑ Summary OrePAN2.pm »
1 package OrePAN2::Logger;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 our $VERSION = '2.0.0';
9  
10 # trace
11 # debug
12 # info (inform)
13 0 ▶sub info { return print {*STDERR} "[INFO] $_[1]\n"; }
Subroutine info: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 # notice
16 # warning (warn)
17 0 ▶sub warn { return print {*STDERR} "[WARN] $_[1]\n"; }
Subroutine warn: not called CC=1 SCAR=6.9
Pod undocumented
18  
19 # error (err)
20 # critical (crit, fatal)
21 # alert
22 # emergency
23  
24 6 1;
« OrePAN2/Repository.pm ↑ Summary OrePAN2.pm »