Up/Score/Move.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Up/User.pm ↑ Summary Up/Score.pm »
1 package WWW::Jawbone::Up::Score::Move;
2  
3 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use base 'WWW::Jawbone::Up::JSON';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 __PACKAGE__->add_accessors(
10 qw(distance active_time longest_active longest_idle));
11 1 __PACKAGE__->add_accessors({
12 steps => 'bg_steps',
13 active_burn => 'calories',
14 resting_burn => 'bmr_calories',
15 });
16  
17 1 ▶sub total_burn {
Subroutine total_burn: called CC=1 SCAR=0.0
Pod undocumented
18 1 my $self = shift;
19 1 return $self->active_burn + $self->resting_burn;
20 }
21  
22 1 1;
« Up/User.pm ↑ Summary Up/Score.pm »