GitMeta/Github.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 56.6% 17 / 30 CC 2 SCAR 9.8
CC
2
Cov
54%
expand
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« GitMeta/SshDir.pm ↑ Summary
1 ###########################################
2 package GitMeta::Github;
3 ###########################################
4 # 2010, Mike Schilli <m@perlmeister.com>
5 ###########################################
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use base qw(GitMeta);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Pithub;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 ###########################################
12 0 ▶sub expand {
Subroutine expand: not called CC=2 SCAR=17.9
Pod undocumented
13 ###########################################
14 0 my($self) = @_;
15  
16 0 $self->param_check("user");
17  
18 0 my $user = $self->{user};
19 0 my @repos = ();
20  
21 0 my $ph = Pithub->new( auto_pagination => 1 );
22 0 my $result = $ph->repos->list( user => $user );
23  
24 0 ▶ while ( my $repo = $result->next ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $repo = $result->next) 0 0 0
25 0 push @repos,
26 "git\@github.com:$user/$repo->{name}.git";
27 }
28  
29 0 return @repos;
30 }
31  
32 2 1;
33  
34 __END__
« GitMeta/SshDir.pm ↑ Summary