blib/lib/Clustericious/Command/configtest.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 26 / 26 CC 2 SCAR 2.9
CC
2
Cov
100%
run
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Clustericious/Plugin/ClustericiousHelpers.pm ↑ Summary blib/lib/Clustericious/Coder/YAML.pm »
1 package Clustericious::Command::configtest;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use Mojo::Base 'Clustericious::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # ABSTRACT: Test a Clustericious application's configuration
9 3 our $VERSION = '1.29'; # VERSION
10  
11  
12 3 has description => <<EOT;
13 Load configuration and test for errors
14 EOT
15  
16 3 has usage => <<EOT;
17 usage $0: configtest
18 Load configuration and test for errors
19 EOT
20  
21 sub run
22 2 ▶{
Subroutine run: called CC=2 SCAR=6.9
Pod documented
23 2 my($self, @args) = @_;
24 2 ▶ exit 2 unless $self->app->sanity_check;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->app->sanity_check 1 1 2
25 1 say 'config okay';
26 }
27  
28 3 1;
29  
30 __END__
« blib/lib/Clustericious/Plugin/ClustericiousHelpers.pm ↑ Summary blib/lib/Clustericious/Coder/YAML.pm »