Github/Common.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 60.0% 12 / 20 CC 2 SCAR 11.6
CC
2
Cov
57%
new
6.0
github
2.0
BEGIN
1.0
CRAP 3.2
« Github/User.pm ↑ Summary Github/Team.pm »
1 package Net::Async::Github::Common;
2  
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 our $VERSION = '0.013'; # VERSION
7  
8 =head1 NAME
9  
10 Net::Async::Github::Common - common base class for entities
11  
12 =head1 METHODS
13  
14 =head2 new
15  
16 Instantiates. This will expect the L</github> attribute to be passed.
17  
18 =cut
19  
20 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
21 0 my $self = bless { @_[1..$#_] }, $_[0];
22 0 ▶ die "no ->github provided" unless $self->github;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->github 0 0 0
23 0 $self
24 }
25  
26 =head2 github
27  
28 Returns the top-level L<Net::Async::Github> instance.
29  
30 =cut
31  
32 0 ▶sub github { shift->{github} }
Subroutine github: not called CC=1 SCAR=6.9
Pod documented
33  
34 9 1;
35  
« Github/User.pm ↑ Summary Github/Team.pm »