Plugin/Config/YAML.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 62.9% 17 / 27 CC 2 SCAR 9.8
CC
2
Cov
62%
build_plugin
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Plugin/Config.pm ↑ Summary Config.pm »
1 package Terse::Plugin::Config::YAML;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base 'Terse::Plugin::Config';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use YAML::XS qw/LoadFile/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub build_plugin {
Subroutine build_plugin: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my ($self) = @_;
12 0 ▶ if (!$self->config_file) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->config_file) 0 0 0
13 0 my $file = $0;
14 0 ($self->config_file = $0) =~ s/(\.psgi)?$/.yml/;
15 }
16 0 $self->data = LoadFile $self->config_file;
17 0 return $self;
18 }
19  
20 1 1;
21  
22 __END__
« Plugin/Config.pm ↑ Summary Config.pm »