PurePerl/Object.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PurePerl/NewObject/Tag.pm ↑ Summary PurePerl/Object/Blob.pm »
1 package Git::PurePerl::Object;
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 enum 'ObjectKind' => [qw(commit tree blob tag)];
8  
9 4 has 'kind' => ( is => 'ro', isa => 'ObjectKind', required => 1 );
10 4 has 'size' => ( is => 'ro', isa => 'Int', required => 1 );
11 4 has 'content' => ( is => 'rw', isa => 'Str', required => 1 );
12 4 has 'sha1' => ( is => 'ro', isa => 'Str', required => 1 );
13 4 has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
14  
15 4 __PACKAGE__->meta->make_immutable;
16  
17 4 1;
« PurePerl/NewObject/Tag.pm ↑ Summary PurePerl/Object/Blob.pm »