File Coverage

blib/lib/Net/PulseMeter/Sensor/UniqCounter.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::UniqCounter;
2 1     1   738 use strict;
  1         2  
  1         42  
3 1     1   6 use warnings 'all';
  1         2  
  1         43  
4              
5 1     1   5 use base qw/Net::PulseMeter::Sensor::Counter/;
  1         1  
  1         567  
6              
7             sub event {
8 6     6 0 2125 my ($self, $value) = @_;
9 6         36 $self->r->sadd($self->value_key, $value);
10             }
11              
12             1;