VCI/VCS/Bzr/Repository.pm

filter: Statementstmt 56.2% 9 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 52.3% 11 / 21 CC 2 SCAR 11.6
CC
2
Cov
56%
_build_projects
6.0
BUILD
2.0
BEGIN
1.0
CRAP 3.2
« VCI/VCS/Cvs/Commit.pm ↑ Summary VCI/VCS/Svn/Project.pm »
1 package VCI::VCS::Bzr::Repository;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use MooseX::Method;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 extends 'VCI::Abstract::Repository';
6  
7 0 ▶sub BUILD { shift->_root_always_ends_with_slash }
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
8  
9 # Note that "projects" won't work for some remote repositories, because of
10 # limitations of "bzr branches".
11 0 ▶sub _build_projects {
Subroutine _build_projects: not called CC=2 SCAR=17.9
12 0 my $self = shift;
13 0 my $branch_names = $self->vci->x_do(args => ['branches', $self->root]);
14 0 my @projects;
15 0 foreach my $branch (split("\n", $branch_names)) {
16 0 push(@projects, $self->project_class->new(name => $branch,
17 repository => $self));
18 }
19 0 return \@projects;
20 }
21  
22 1 __PACKAGE__->meta->make_immutable;
23  
24 1 1;
« VCI/VCS/Cvs/Commit.pm ↑ Summary VCI/VCS/Svn/Project.pm »