API/User.pm

filter: Statementstmt 69.2% 9 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 70.5% 12 / 17 CC 1 SCAR 2.9
CC
1
Cov
69%
repo
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« API/Repo/Keys.pm ↑ Summary API/Repo.pm »
1 #
2 # This file is part of GitHub-API
3 #
4 # This software is Copyright (c) 2013 by Chris Weyl.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 package GitHub::API::User;
11 {
12 3 $GitHub::API::User::VERSION = '0.000000_03';
13 }
14  
15 3 ▶use common::sense;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # ABSTRACT: A user
18  
19 3 ▶use aliased 'GitHub::API::Repo';
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 # debugging...
22 #use Smart::Comments '###', '####';
23  
24  
25 0 ▶sub repo {
Subroutine repo: not called CC=1 SCAR=6.9
Pod documented
26 0 my ($self, $repo) = @_;
27  
28 0 my %repo = (%$self, repo => $repo);
29 0 $repo{url} = "/repos/$self->{user}/$repo";
30  
31 #### %repo
32 0 return bless \%repo, Repo;
33 }
34  
35  
36  
37 3 !!42;
38  
39 __END__
« API/Repo/Keys.pm ↑ Summary API/Repo.pm »