Gitalist/Object/Tag.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 61.2% 19 / 31 CC 3 SCAR 8.3
CC
3
Cov
60%
_build_commit
3.5
tree
3.5
BEGIN
1.3
CRAP 2.3
« Gitalist/Util.pm ↑ Summary Gitalist.pm »
1 package Git::Gitalist::Object::Tag;
2  
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 extends 'Git::Gitalist::Object';
6  
7 2 ▶use Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 has '+type' => ( default => 'tag' );
10  
11 2 has '+_gpp_obj' => (
12 handles => [qw(
13 object
14 tag
15 tagger
16 tagged_time
17 )],
18 );
19  
20 2 has commit => (
21 isa => 'Git::Gitalist::Object::Commit',
22 is => 'ro',
23 lazy_build => 1,
24 );
25  
26 0 ▶method _build_commit {
Subroutine BEGIN: called CC=1 SCAR=2.6
Subroutine _build_commit: not called CC=2 SCAR=12.4
Branch: 1 branch
BranchTrueFalseTotal
if scalar @_ > 0 0 0 0
27 0 return Git::Gitalist::Object::Commit->new(
28 repository => $self->repository,
29 sha1 => $self->object,
30 type => 'commit',
31 );
32 }
33  
34 0 ▶method tree {
Subroutine BEGIN: called CC=1 SCAR=2.6
Subroutine tree: not called CC=2 SCAR=12.4
Branch: 1 branch
BranchTrueFalseTotal
if scalar @_ > 0 0 0 0
35 0 return [$self->repository->get_object($self->commit->tree_sha1)];
36 }
37  
38 2 1;
39  
40 __END__
« Gitalist/Util.pm ↑ Summary Gitalist.pm »