Cogit/Config.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Cogit/Actor.pm ↑ Summary Cogit/Object/Blob.pm »
1 package Cogit::Config;
2 4 $Cogit::Config::VERSION = '0.001001';
3 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use MooX::Types::MooseLike::Base qw( InstanceOf );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 extends 'Config::GitLike';
8  
9 4 has '+confname' => ( default => "gitconfig" );
10  
11 4 has git => (
12 is => 'ro',
13 isa => InstanceOf['Cogit'],
14 required => 1,
15 weak_ref => 1,
16 );
17  
18 28 ▶sub dir_file {
Subroutine dir_file: called CC=1 SCAR=0.0
Pod documented
19 28 my $self = shift;
20 28 return $self->git->gitdir->file("config");
21 };
22  
23 4 1;
24  
25 __END__
« Cogit/Actor.pm ↑ Summary Cogit/Object/Blob.pm »