Class/Issue/Changelog.pm

filter: Statementstmt 65.2% 15 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 68.9% 20 / 29 CC 2 SCAR 9.8
CC
2
Cov
65%
init
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Class.pm ↑ Summary Class/Issue/Worklog.pm »
1 package JIRA::REST::Class::Issue::Changelog;
2 4 ▶use parent qw( JIRA::REST::Class::Abstract );
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 our $VERSION = '0.12';
8 4 our $SOURCE = 'CPAN';
9 ## $SOURCE = 'GitHub'; # COMMENT
10 # the line above will be commented out by Dist::Zilla
11  
12 # ABSTRACT: A helper class for L<JIRA::REST::Class|JIRA::REST::Class> that represents the changelog of a JIRA issue as an object.
13  
14 4 __PACKAGE__->mk_contextual_ro_accessors( qw/ changes / );
15  
16 0 ▶sub init {
Subroutine init: not called CC=2 SCAR=17.9
Pod documented
17 0 my $self = shift;
18 0 $self->SUPER::init( @_ );
19  
20 0 $self->{data} = $self->issue->get( '?expand=changelog' );
21 0 my $changes = $self->{changes} = [];
22  
23 0 foreach my $change ( @{ $self->data->{changelog}->{histories} } ) {
24 0 push @$changes,
25 $self->issue->make_object( 'change', { data => $change } );
26 }
27  
28 0 return;
29 }
30  
31 #pod =method B<changes>
32 #pod
33 #pod Returns a list of individual changes, as
34 #pod L<JIRA::REST::Class::Issue::Changelog::Change|JIRA::REST::Class::Issue::Changelog::Change> objects.
35 #pod
36 #pod =cut
37  
38 4 1;
39  
40 __END__
« Class.pm ↑ Summary Class/Issue/Worklog.pm »