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         6  
  4         26  
3 4     4   19655 use MooseX::StrictConstructor;
  4         8  
  4         36  
4 4     4   8783 use Moose::Util::TypeConstraints;
  4         8  
  4         34  
5 4     4   5681 use namespace::autoclean;
  4         6  
  4         36  
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;