File Coverage

blib/lib/Git/PurePerl/Config.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Git::PurePerl::Config;
2 4     4   16 use Moose;
  4         4  
  4         22  
3 4     4   16244 use MooseX::StrictConstructor;
  4         5  
  4         25  
4 4     4   7274 use Moose::Util::TypeConstraints;
  4         5  
  4         28  
5 4     4   4871 use namespace::autoclean;
  4         5  
  4         30  
6              
7             extends 'Config::GitLike';
8              
9             has '+confname' => ( default => "gitconfig" );
10             has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
11              
12             override dir_file => sub {
13             my $self = shift;
14             return $self->git->gitdir->file("config");
15             };
16              
17             1;