BackPAN/Index/Role/Log.pm

filter: Statementstmt 87.5% 7 / 8 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 83.3% 10 / 12 CC 2 SCAR 6.1
CC
2
Cov
80%
_log
2.3
BEGIN
1.0
CRAP 1.8
« BackPAN/Index/IndexFile.pm ↑ Summary BackPAN/Index/Role/AsHash.pm »
1 package BackPAN::Index::Role::Log;
2  
3 10 ▶use Mouse::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 10 has debug =>
6 is => 'ro',
7 isa => 'Bool',
8 default => 0;
9  
10 7 ▶sub _log {
Subroutine _log: called CC=2 SCAR=8.1
11 7 my $self = shift;
12 7 ▶ return unless $self->debug;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->debug 7 0 7
13 0 print STDERR @_, "\n";
14 }
15  
16 10 1;
« BackPAN/Index/IndexFile.pm ↑ Summary BackPAN/Index/Role/AsHash.pm »