TeamCity/Entity/BuildType.pm

filter: Statementstmt 96.6% 29 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod n/a totaltotal 95.0% 38 / 40 CC 1 SCAR 1.0
CC
1
Cov
97%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« TeamCity/Entity/Project.pm ↑ Summary TeamCity/Entity/TestOccurrence.pm »
1 package WebService::TeamCity::Entity::BuildType;
2  
3 4 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 our $VERSION = '0.04';
9  
10 4 ▶use Types::Standard qw( InstanceOf );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use WebService::TeamCity::Entity::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use WebService::TeamCity::Iterator;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 has project => (
17 is => 'ro',
18 isa => InstanceOf ['WebService::TeamCity::Entity::Project'],
19 lazy => 1,
20 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 $_[0]->_inflate_one(
22 'Project',
23 $_[0]->_full_data->{project},
24 0 );
25 },
26 4 );
27  
28 # has template => (
29 # is => 'ro',
30 # isa => Maybe [ InstanceOf [__PACKAGE__] ],
31 # lazy => 1,
32 # default => sub {
33 # $_[0]->_inflate_one(
34 # $_[0]->_full_data->{template},
35 # 'Template',
36 # );
37 # },
38 # );
39  
40 has builds => (
41 is => 'ro',
42 isa => InstanceOf ['WebService::TeamCity::Iterator'],
43 lazy => 1,
44 2 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
45 $_[0]->_iterator_for(
46 $_[0]->client->base_uri . $_[0]->_full_data->{builds}{href},
47 2 'build',
48 'Build',
49 );
50 },
51 4 );
52  
53 # has vcs_root_entries
54  
55 # has settings
56  
57 # has parameters
58  
59 # has steps
60  
61 # has features
62  
63 # has triggers
64  
65 # has snapshot_dependencies
66  
67 4 with(
68 'WebService::TeamCity::Entity',
69 'WebService::TeamCity::Entity::HasDescription',
70 'WebService::TeamCity::Entity::HasID',
71 'WebService::TeamCity::Entity::HasName',
72 'WebService::TeamCity::Entity::HasWebURL',
73 );
74  
75 4 1;
76  
77 # ABSTRACT: A single TeamCity build type
78  
79 __END__
« TeamCity/Entity/Project.pm ↑ Summary TeamCity/Entity/TestOccurrence.pm »