SiteConfig/Section.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 94.7% 18 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
to_string
1.0
CRAP 1.0
« SiteConfig/Directive.pm ↑ Summary SiteConfig.pm »
1 package Apache::SiteConfig::Section;
2 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 extends 'Apache::SiteConfig::Root';
4  
5 2 has name => ( is => 'rw' );
6 2 has value => ( is => 'rw' );
7  
8 3 ▶sub to_string {
Subroutine to_string: called CC=1 SCAR=0.0
Pod undocumented
9 3 my ($self) = @_;
10 3 my $level = $self->get_level;
11 3 my $indent = " " x ($level * 4);
12 3 return join "\n" ,"$indent<@{[$self->name]} @{[ $self->value ]}>",
13 3 (map { $_->to_string } @{ $self->statements }),
14 3 "$indent</@{[ $self->name ]}>\n";
15 }
16  
17 2 1;
« SiteConfig/Directive.pm ↑ Summary SiteConfig.pm »