blib/lib/Makefile/AST/Command.pm

filter: Statementstmt 55.0% 11 / 20 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 45.1% 14 / 31 SCAR 19.6
CC
4
Cov
42%
as_str
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.1
« /home/cpancover/.cpan/build/Makefile-Parser-0.215-0/script/makesimple ↑ Summary blib/lib/Makefile/AST/Rule/Base.pm »
1 package Makefile::AST::Command;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use base 'Class::Accessor::Fast';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 #use Smart::Comments;
8  
9 2 __PACKAGE__->mk_accessors(qw{
10 silent tolerant critical content target
11 });
12  
13 sub as_str {
14 0 ▶ my $self = shift;
Subroutine as_str: not called CC=4 SCAR=30.0
Pod undocumented
15 0 my $str;
16 0 ▶ if ($self->silent) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->silent) 0 0 0
17 0 $str .= '@';
18 }
19 0 ▶ if ($self->tolerant) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->tolerant) 0 0 0
20 0 $str .= '-';
21 }
22 0 ▶ if ($self->critical) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->critical) 0 0 0
23 0 $str .= '+';
24 }
25 0 $str .= $self->content;
26 }
27  
28 2 1;
29  
« /home/cpancover/.cpan/build/Makefile-Parser-0.215-0/script/makesimple ↑ Summary blib/lib/Makefile/AST/Rule/Base.pm »