blib/lib/Makefile/AST/Rule/Base.pm

filter: Statementstmt 64.7% 11 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 58.3% 14 / 24 SCAR 0.4
CC
1
Cov
65%
add_command
2.0
has_command
2.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Makefile/AST/Command.pm ↑ Summary blib/lib/Makefile/AST/Variable.pm »
1 package Makefile::AST::Rule::Base;
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 2 ▶use base 'Class::Accessor::Fast';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 __PACKAGE__->mk_ro_accessors(qw{
8 normal_prereqs order_prereqs commands colon
9 target
10 });
11  
12 sub add_command ($$) {
13 0 ▶ my ($self, $cmd) = @_;
Subroutine add_command: not called CC=1 SCAR=6.9
Pod undocumented
14 0 push @{ $self->{commands} }, $cmd;
15 }
16  
17 sub has_command ($) {
18 0 ▶ my ($self) = @_;
Subroutine has_command: not called CC=1 SCAR=6.9
Pod undocumented
19 0 return scalar @{ $self->commands };
20 }
21  
22 2 1;
« blib/lib/Makefile/AST/Command.pm ↑ Summary blib/lib/Makefile/AST/Variable.pm »