File Coverage

blib/lib/Net/PulseMeter/Sensor/HashedIndicator.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             package Net::PulseMeter::Sensor::HashedIndicator;
2 1     1   704 use strict;
  1         1  
  1         32  
3 1     1   4 use warnings 'all';
  1         2  
  1         38  
4              
5 1     1   5 use base qw/Net::PulseMeter::Sensor::Indicator/;
  1         1  
  1         480  
6              
7             sub event {
8 1     1 0 3 my ($self, $data) = @_;
9 1         14 $self->r->hset($self->value_key, $_, $data->{$_}) for (keys %$data);
10             }
11              
12             1;