PurePerl/DirectoryEntry.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PurePerl/Protocol/File.pm ↑ Summary PurePerl/NewObject.pm »
1 package Git::PurePerl::DirectoryEntry;
2 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 has 'mode' => ( is => 'ro', isa => 'Str', required => 1 );
8 4 has 'filename' => ( is => 'ro', isa => 'Str', required => 1 );
9 4 has 'sha1' => ( is => 'ro', isa => 'Str', required => 1 );
10 4 has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
11  
12 9 ▶sub object {
Subroutine object: called CC=1 SCAR=0.0
Pod undocumented
13 9 my $self = shift;
14 9 return $self->git->get_object( $self->sha1 );
15 }
16  
17 4 __PACKAGE__->meta->make_immutable;
18  
« PurePerl/Protocol/File.pm ↑ Summary PurePerl/NewObject.pm »