PivotalTracker/Person.pm

filter: Statementstmt 95.8% 23 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 93.5% 29 / 31 CC 1 SCAR 1.3
CC
1
Cov
96%
_self_uri
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« PivotalTracker/Me.pm ↑ Summary PivotalTracker/Entity.pm »
1 package WebService::PivotalTracker::Person;
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 Bool DateTimeObject 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 name => NonEmptyStr,
18 initials => NonEmptyStr,
19 username => NonEmptyStr,
20 kind => NonEmptyStr,
21 );
22  
23 1 with 'WebService::PivotalTracker::Entity';
24  
25 ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines)
26 0 ▶sub _self_uri {
Subroutine _self_uri: not called CC=1 SCAR=6.9
27 0 die 'Me has no uri';
28 }
29 ## use critic
30  
31 1 1;
32  
33 # ABSTRACT: A Person (a PT user)
34  
35 __END__
« PivotalTracker/Me.pm ↑ Summary PivotalTracker/Entity.pm »