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   18 use Moose;
  4         5  
  4         30  
3 4     4   16703 use MooseX::StrictConstructor;
  4         5  
  4         28  
4 4     4   7788 use Moose::Util::TypeConstraints;
  4         4  
  4         32  
5 4     4   4827 use namespace::autoclean;
  4         4  
  4         31  
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;