| 1 | package # hide from PAUSE | ||
| 2 | Net::Bamboo::Build; | ||
| 3 | |||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use DateTimeX::Easy; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 0 | ▶ | subtype DateTime => as Object => where { $_->isa('DateTime') }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 10 | 0 | ▶ | coerce DateTime => from Str => via { new DateTimeX::Easy $_ => tz => 'local' }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 11 | |||
| 12 | 1 | has plan => (isa => 'Net::Bamboo::Plan', is => 'ro'); | |
| 13 | 1 | has key => (isa => 'Str', is => 'ro'); | |
| 14 | 1 | has number => (isa => 'Int', is => 'ro'); | |
| 15 | 1 | has state => (isa => 'Str', is => 'ro'); | |
| 16 | 1 | has reason => (isa => 'Str', is => 'ro'); | |
| 17 | 1 | has date_started => (isa => 'DateTime', is => 'ro', coerce => 1); | |
| 18 | 1 | has date_completed => (isa => 'DateTime', is => 'ro', coerce => 1); | |
| 19 | 1 | has num_tests_ok => (isa => 'Int', is => 'ro'); | |
| 20 | 1 | has num_tests_fail => (isa => 'Int', is => 'ro'); | |
| 21 | #has link => (isa => Uri, is => 'ro', coerce => 1); | ||
| 22 | |||
| 23 | sub duration | ||
| 24 | 0 | ▶ | { |
|
Subroutine
duration: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 25 | 0 | my $self = shift; | |
| 26 | |||
| 27 | 0 | return $self->date_completed - $self->date_started; | |
| 28 | } | ||
| 29 | |||
| 30 | sub succeeded | ||
| 31 | 0 | ▶ | { |
|
Subroutine
succeeded: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 32 | 0 | shift->state eq 'Successful'; | |
| 33 | } | ||
| 34 | |||
| 35 | sub failed | ||
| 36 | 0 | ▶ | { |
|
Subroutine
failed: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 37 | 0 | shift->state eq 'Failed'; | |
| 38 | } | ||
| 39 | |||
| 40 | 1 | 1; | |
| 41 | |||