Cogit/DirectoryEntry.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Cogit/Protocol/File.pm ↑ Summary Cogit/Actor.pm »
1 package Cogit::DirectoryEntry;
2 4 $Cogit::DirectoryEntry::VERSION = '0.001001';
3 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use MooX::Types::MooseLike::Base 'Str', 'InstanceOf';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 has mode => (
8 is => 'ro',
9 isa => Str,
10 required => 1,
11 );
12  
13 4 has filename => (
14 is => 'ro',
15 isa => Str,
16 required => 1,
17 );
18  
19 4 has sha1 => (
20 is => 'ro',
21 isa => Str,
22 required => 1,
23 );
24  
25 4 has git => (
26 is => 'rw',
27 isa => InstanceOf['Cogit'],
28 weak_ref => 1,
29 );
30  
31 9 ▶sub object {
Subroutine object: called CC=1 SCAR=0.0
Pod undocumented
32 9 my $self = shift;
33 9 return $self->git->get_object( $self->sha1 );
34 }
35  
36 4 1;
37  
38 __END__
« Cogit/Protocol/File.pm ↑ Summary Cogit/Actor.pm »