PulseMeter/Sensor/Indicator.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.4% 19 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PulseMeter/Sensor/Counter.pm ↑ Summary PulseMeter/Sensor/Timelined/Counter.pm »
1 package Net::PulseMeter::Sensor::Indicator;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use base qw/Net::PulseMeter::Sensor::Base/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub event {
Subroutine event: called CC=1 SCAR=0.0
Pod undocumented
8 1 my ($self, $value) = @_;
9 1 $self->r->set($self->value_key, $value);
10 }
11  
12 5 ▶sub value_key {
Subroutine value_key: called CC=1 SCAR=0.0
Pod undocumented
13 5 my $self = shift;
14 5 sprintf("pulse_meter:value:%s", $self->name);
15 }
16  
17 2 1;
« PulseMeter/Sensor/Counter.pm ↑ Summary PulseMeter/Sensor/Timelined/Counter.pm »