lib/Kwiki/Installer.pm

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 41.9% 13 / 31 CC 2 SCAR 10.0
CC
2
Cov
45%
set_file_content
6.0
file_is_config
2.0
warn_config
2.0
CRAP 2.7
« lib/Kwiki/Hub.pm ↑ Summary lib/Kwiki/WebFile.pm »
1 package Kwiki::Installer;
2 7 ▶use Spoon::Installer -Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶sub set_file_content {
Subroutine set_file_content: not called CC=2 SCAR=17.9
Pod undocumented
5 # Can't use super here because of mixin squashes things down into one
6 # namespace. May need to make mixins more flexible.
7 0 my $content = Spoon::Installer::set_file_content($self, @_);
8 0 my $path = shift;
9 0 ▶ $content = $self->warn_config($content)
Branch: 1 branch
BranchTrueFalseTotal
if $self->file_is_config($path) 0 0 0
10 if $self->file_is_config($path);
11 0 return $content;
12 }
13  
14 0 ▶sub file_is_config {
Subroutine file_is_config: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my $path = shift;
16 0 $path =~ /config\/\w+\.yaml$/;
17 }
18  
19 0 ▶sub warn_config {
Subroutine warn_config: not called CC=1 SCAR=6.9
Pod undocumented
20 0 <<END . shift;
21 # DO NOT EDIT THIS FILE
22 # Put overrides in the top level config.yaml
23 # See: http://www.kwiki.org/?ChangingConfigDotYaml
24 #
25 END
26 }
27  
28 7 __DATA__
« lib/Kwiki/Hub.pm ↑ Summary lib/Kwiki/WebFile.pm »