PivotalTracker/Comment.pm

filter: Statementstmt 92.0% 23 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 90.6% 29 / 32 CC 1 SCAR 1.3
CC
1
Cov
92%
_self_uri
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« PivotalTracker/ProjectMembership.pm ↑ Summary PivotalTracker/Label.pm »
1 package WebService::PivotalTracker::Comment;
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 use WebService::PivotalTracker::Types
11 1 ▶ qw( ArrayRef DateTimeObject Maybe NonEmptyStr PositiveInt );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 has( @{$_} ) for props_to_attributes(
16 id => PositiveInt,
17 story_id => Maybe [PositiveInt],
18 epic_id => Maybe [PositiveInt],
19 text => NonEmptyStr,
20 person_id => PositiveInt,
21 created_at => {
22 type => DateTimeObject,
23 inflator => '_inflate_iso8601_datetime',
24 },
25 updated_at => {
26 type => DateTimeObject,
27 inflator => '_inflate_iso8601_datetime',
28 },
29 file_attachment_ids => ArrayRef [PositiveInt],
30 google_attachment_ids => ArrayRef [PositiveInt],
31 commit_identifier => Maybe [NonEmptyStr],
32 commit_type => Maybe [NonEmptyStr],
33 kind => NonEmptyStr,
34 );
35  
36 1 with 'WebService::PivotalTracker::Entity';
37  
38 ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines)
39 0 ▶sub _self_uri {
Subroutine _self_uri: not called CC=1 SCAR=6.9
40 0 my $self = shift;
41  
42 0 return $self->_client->build_uri(
43 sprintf(
44 '/projects/%s/stories/%s/comments/%s',
45 $self->project_id,
46 $self->story_id,
47 $self->id,
48 )
49 );
50 }
51 ## use critic
52  
53 1 1;
54  
55 # ABSTRACT: A story comment
56  
57 __END__
« PivotalTracker/ProjectMembership.pm ↑ Summary PivotalTracker/Label.pm »