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

filter: Statementstmt 81.2% 26 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 8 / 10 Podpod 100% 2 / 2 totaltotal 81.8% 36 / 44 CC 1 SCAR 1.8
CC
1
Cov
81%
execute
2.0
abstract
2.0
BEGIN
1.0
CRAP 1.2
« lib/Monitoring/Reporter/Cmd/Command.pm ↑ Summary lib/Monitoring/Reporter/Cmd/Command/actions.pm »
1 package Monitoring::Reporter::Cmd::Command::list;
2 {
3 1 $Monitoring::Reporter::Cmd::Command::list::VERSION = '0.01';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Monitoring::Reporter::Cmd::Command::list::AUTHORITY = 'cpan:TEX';
7 }
8 # ABSTRACT: list all triggers 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 $triggers = $self->mr()->triggers();
36 0 print "Triggers:\n";
37 0 print Dumper($triggers);
38  
39 # TODO not yet implemented
40  
41 0 return 1;
42 }
43  
44 0 ▶sub abstract {
Subroutine abstract: not called CC=1 SCAR=6.9
Pod documented
45 0 return 'List all triggers';
46 }
47  
48 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 1 __PACKAGE__->meta->make_immutable;
50  
51 1 1;
52  
53 __END__
« lib/Monitoring/Reporter/Cmd/Command.pm ↑ Summary lib/Monitoring/Reporter/Cmd/Command/actions.pm »