blib/lib/Acme/KnowledgeWisdom.pm

filter: Statementstmt 58.8% 10 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 51.8% 14 / 27 CC 3 SCAR 14.7
CC
3
Cov
48%
get
6.0
ask
6.0
BEGIN
1.0
CRAP 4.3
↑ Summary
1 package Acme::KnowledgeWisdom;
2  
3 1 our $VERSION = '0.01';
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 has 'in_questions' => ( isa => 'Bool', is => 'ro', default => 1);
9 1 has 'has_already' => ( isa => 'Bool', is => 'ro', default => 0);
10  
11 0 ▶sub get {
Subroutine get: not called CC=2 SCAR=17.9
Pod documented
12 0 my $kw = shift;
13
14 0 ▶ return $kw->ask
Branch: 1 branch
BranchTrueFalseTotal
if $kw->in_questions 0 0 0
15 if $kw->in_questions;
16  
17 0 return 42;
18 }
19  
20 0 ▶sub ask {
Subroutine ask: not called CC=2 SCAR=17.9
Pod documented
21 0 my $self = shift;
22
23 0 ▶ return 42
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_already 0 0 0
24 if $self->has_already;
25
26 0 my $kw = Acme::KnowledgeWisdom->new;
27 0 return $kw->get;
28 }
29  
30 1 1;
31  
32  
33 __END__
↑ Summary