File Coverage

blib/lib/Monitoring/GLPlugin/TableItem.pm
Criterion Covered Total %
statement 3 12 25.0
branch 0 2 0.0
condition n/a
subroutine 1 3 33.3
pod 0 2 0.0
total 4 19 21.0


line stmt bran cond sub pod time code
1             package Monitoring::GLPlugin::TableItem;
2             our @ISA = qw(Monitoring::GLPlugin::Item);
3              
4 2     2   6 use strict;
  2         2  
  2         199  
5              
6             sub new {
7 0     0 0   my ($class, %params) = @_;
8 0           my $self = {};
9 0           bless $self, $class;
10 0           foreach (keys %params) {
11 0           $self->{$_} = $params{$_};
12             }
13 0 0         if ($self->can("finish")) {
14 0           $self->finish(%params);
15             }
16 0           return $self;
17             }
18              
19             sub check {
20 0     0 0   my ($self) = @_;
21             # some tableitems are not checkable, they are only used to enhance other
22             # items (e.g. sensorthresholds enhance sensors)
23             # normal tableitems should have their own check-method
24             }
25              
26             1;
27              
28             __END__