blib/lib/Net/PulseMeter/Sensor/Timelined/Counter.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::Counter; | ||||||
2 | 1 | 1 | 637 | use strict; | |||
1 | 3 | ||||||
1 | 37 | ||||||
3 | 1 | 1 | 6 | use warnings 'all'; | |||
1 | 2 | ||||||
1 | 34 | ||||||
4 | |||||||
5 | 1 | 1 | 5 | use base qw/Net::PulseMeter::Sensor::Timeline/; | |||
1 | 1 | ||||||
1 | 519 | ||||||
6 | |||||||
7 | sub aggregate_event { | ||||||
8 | 2 | 2 | 0 | 4 | my ($self, $key, $value) = @_; | ||
9 | 2 | 6 | $self->r->incrby($key, $value); | ||||
10 | } | ||||||
11 | |||||||
12 | 1; |