lib/Monitoring/Reporter/Cmd/Command/actions.pm

filter: Statementstmt 86.6% 26 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 8 / 10 Podpod 100% 2 / 2 totaltotal 85.7% 36 / 42 CC 1 SCAR 1.8
CC
1
Cov
87%
execute
2.0
abstract
2.0
BEGIN
1.0
CRAP 1.2
« lib/Monitoring/Reporter/Cmd/Command/list.pm ↑ Summary lib/Monitoring/Reporter/Web/Plugin.pm »
1 package Monitoring::Reporter::Cmd::Command::actions;
2 {
3 1 $Monitoring::Reporter::Cmd::Command::actions::VERSION = '0.01';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Monitoring::Reporter::Cmd::Command::actions::AUTHORITY = 'cpan:TEX';
7 }
8 # ABSTRACT: enable all actions from the CLI
9  
10 1 ▶use 5.010_000;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use feature ':5.10';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # use IO::Handle;
18 # use autodie;
19 # use MooseX::Params::Validate;
20 # use Carp;
21 # use English qw( -no_match_vars );
22 # use Try::Tiny;
23 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 # extends ...
26 1 extends 'Monitoring::Reporter::Cmd::Command';
27 # has ...
28 # with ...
29 # initializers ...
30  
31 # your code here ...
32 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
33 0 my $self = shift;
34  
35 0 my $status = $self->mr()->enable_actions();
36  
37 0 return 1;
38 }
39  
40 0 ▶sub abstract {
Subroutine abstract: not called CC=1 SCAR=6.9
Pod documented
41 0 return 'Enable all actions';
42 }
43  
44 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
45 1 __PACKAGE__->meta->make_immutable;
46  
47 1 1;
48  
49 __END__
« lib/Monitoring/Reporter/Cmd/Command/list.pm ↑ Summary lib/Monitoring/Reporter/Web/Plugin.pm »