File Coverage

blib/lib/Net/PulseMeter/Sensor/Timelined/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::Timelined::HashedIndicator;
2 1     1   621 use strict;
  1         2  
  1         31  
3 1     1   4 use warnings 'all';
  1         1  
  1         34  
4              
5 1     1   6 use base qw/Net::PulseMeter::Sensor::Timeline/;
  1         2  
  1         522  
6              
7             sub aggregate_event {
8 2     2 0 3 my ($self, $key, $data) = @_;
9 2         9 $self->r->hset($key, $_, $data->{$_}) for (keys(%$data));
10             }
11              
12             1;