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

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