VCI/Abstract/File.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 1 totaltotal 66.6% 10 / 15 CC 1 SCAR 5.1
CC
1
Cov
82%
BUILD
2.0
_build_content_size
2.0
BEGIN
1.0
CRAP 1.7
« VCI/VCS/Hg/File.pm ↑ Summary VCI/Abstract/Repository.pm »
1 package VCI::Abstract::File;
2 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 4 with 'VCI::Abstract::Committable';
5  
6 4 has 'is_executable' => (is => 'ro', isa => 'Bool', lazy_build => 1);
7 4 has 'content' => (is => 'ro', isa => 'Str', lazy_build => 1);
8 4 has 'content_size' => (is => 'ro', isa => 'Int', lazy_build => 1);
9  
10 # Because composed roles don't call BUILD, this is in all objects that
11 # implment Committable.
12 0 ▶sub BUILD { shift->_no_time_without_revision; }
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 0 ▶sub _build_content_size { return length(shift->content) }
Subroutine _build_content_size: not called CC=1 SCAR=6.9
15  
16 4 __PACKAGE__->meta->make_immutable;
17  
18 4 1;
19  
20 __END__
« VCI/VCS/Hg/File.pm ↑ Summary VCI/Abstract/Repository.pm »