Github/RateLimit.pm

filter: Statementstmt 68.7% 11 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 69.5% 16 / 23 CC 1 SCAR 3.4
CC
1
Cov
69%
new
2.0
core
2.0
BEGIN
1.0
CRAP 1.4
« Github/Plan.pm ↑ Summary Github/Branch.pm »
1 package Net::Async::Github::RateLimit;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Net::Async::Github::RateLimit::Core;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = '0.013'; # VERSION
9  
10 =head1 NAME
11  
12 Net::Async::Github::RateLimit - represents the current user's rate limit
13  
14 =head1 METHODS
15  
16 =head2 new
17  
18 Instantiates.
19  
20 =cut
21  
22 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
23 0 my ($class, %args) = @_;
24 0 $args{core} = Net::Async::Github::RateLimit::Core->new(%{ delete $args{resources}{core} });
25 0 bless \%args, $class
26 }
27  
28 =head2 core
29  
30 Returns a L<Net::Async::Github::RateLimit::Core> instance.
31  
32 =cut
33  
34 0 ▶sub core { shift->{core} }
Subroutine core: not called CC=1 SCAR=6.9
Pod documented
35  
36 2 1;
37  
« Github/Plan.pm ↑ Summary Github/Branch.pm »