lib/Zabbix/Reporter/Web/Plugin.pm

filter: Statementstmt 96.5% 28 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 94.5% 35 / 37 CC 1 SCAR 1.2
CC
1
Cov
97%
_init_alias
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« lib/Zabbix/Reporter/Cmd/Command/actions.pm ↑ Summary lib/Zabbix/Reporter/Cmd.pm »
1 package Zabbix::Reporter::Web::Plugin;
2 {
3 1 $Zabbix::Reporter::Web::Plugin::VERSION = '0.07';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Zabbix::Reporter::Web::Plugin::AUTHORITY = 'cpan:TEX';
7 }
8 # ABSTRACT: baseclass for any web plugin
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  
24 # extends ...
25 # has ...
26 1 has 'config' => (
27 'is' => 'ro',
28 'isa' => 'Config::Yak',
29 'lazy' => 1,
30 'builder' => '_init_config',
31 );
32  
33 1 has 'logger' => (
34 'is' => 'rw',
35 'isa' => 'Log::Tree',
36 'required' => 1,
37 );
38  
39 1 has 'tt' => (
40 'is' => 'rw',
41 'isa' => 'Template',
42 'required' => 1,
43 );
44  
45 1 has 'fields' => (
46 'is' => 'ro',
47 'isa' => 'ArrayRef',
48 'lazy' => 1,
49 'builder' => '_init_fields',
50 );
51  
52 1 has 'alias' => (
53 'is' => 'ro',
54 'isa' => 'Str',
55 'lazy' => 1,
56 'builder' => '_init_alias',
57 );
58  
59 1 has 'zr' => (
60 'is' => 'rw',
61 'isa' => 'Zabbix::Reporter',
62 'required' => 1,
63 );
64 # with ...
65 # initializers ...
66 0 ▶sub _init_alias { return ''; }
Subroutine _init_alias: not called CC=1 SCAR=6.9
67  
68 # your code here ...
69  
70 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
71 1 __PACKAGE__->meta->make_immutable;
72  
73 1 1;
74  
75 __END__
« lib/Zabbix/Reporter/Cmd/Command/actions.pm ↑ Summary lib/Zabbix/Reporter/Cmd.pm »