File Coverage

blib/lib/Net/PulseMeter/Sensor/Timelined/UniqCounter.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 19 20 95.0


line stmt bran cond sub pod time code
1             package Net::PulseMeter::Sensor::Timelined::UniqCounter;
2 1     1   5279 use strict;
  1         3  
  1         43  
3 1     1   5 use warnings 'all';
  1         2  
  1         41  
4 1     1   771 use Data::Uniqid qw/uniqid/;
  1         43515  
  1         68  
5              
6 1     1   8 use base qw/Net::PulseMeter::Sensor::Timeline/;
  1         12  
  1         560  
7              
8             sub aggregate_event {
9 3     3 0 6 my ($self, $key, $value) = @_;
10 3         8 $self->r->sadd($key, $value);
11             }
12              
13             1;