PivotalTracker/ProjectIteration.pm

filter: Statementstmt 81.2% 26 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 100% 1 / 1 totaltotal 80.9% 34 / 42 CC 1 SCAR 2.0
CC
1
Cov
81%
stories
2.0
_self_uri
2.0
BEGIN
1.0
CRAP 1.2
« PivotalTracker/Project.pm ↑ Summary PivotalTracker/ProjectMembership.pm »
1 package WebService::PivotalTracker::ProjectIteration;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.12';
8  
9 1 ▶use WebService::PivotalTracker::PropertyAttributes;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use WebService::PivotalTracker::Story;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 use WebService::PivotalTracker::Types
12 1 ▶ qw( DateTimeObject NonEmptyStr PositiveInt PositiveNum );
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 has( @{$_} ) for props_to_attributes(
17 number => PositiveInt,
18 length => PositiveInt,
19 team_strength => PositiveNum,
20 start => {
21 type => DateTimeObject,
22 inflator => '_inflate_iso8601_datetime',
23 },
24 finish => {
25 type => DateTimeObject,
26 inflator => '_inflate_iso8601_datetime',
27 },
28 kind => NonEmptyStr,
29 );
30  
31 1 with 'WebService::PivotalTracker::Entity';
32  
33 0 ▶sub stories {
Subroutine stories: not called CC=1 SCAR=6.9
Pod documented
34 0 my $self = shift;
35  
36 return [
37 map {
38 0 WebService::PivotalTracker::Story->new(
39 raw_content => $_,
40 pt_api => $self->_pt_api,
41 )
42 0 } @{ $self->raw_content->{stories} }
43 ];
44 }
45  
46 ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines)
47 0 ▶sub _self_uri {
Subroutine _self_uri: not called CC=1 SCAR=6.9
48 0 my $self = shift;
49  
50 0 return $self->_client->build_uri(
51 sprintf(
52 '/projects/%s/iterations/%s',
53 $self->project_id,
54 $self->number,
55 )
56 );
57 }
58 ## use critic
59  
60 1 1;
61  
62 # ABSTRACT: A single iteration in a project
63  
64 __END__
« PivotalTracker/Project.pm ↑ Summary PivotalTracker/ProjectMembership.pm »