GitHub/V3/Gitignore.pm

filter: Statementstmt 52.0% 13 / 25 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 50.0% 18 / 36 CC 3 SCAR 13.5
CC
3
Cov
45%
templates
6.0
template
6.0
BEGIN
1.0
CRAP 3.9
« GitHub/V3/Search.pm ↑ Summary GitHub/V3/PullRequests.pm »
1 package Net::GitHub::V3::Gitignore;
2  
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = '1.03';
6 1 our $AUTHORITY = 'cpan:FAYLAND';
7  
8 1 ▶use URI::Escape;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 with 'Net::GitHub::V3::Query';
11  
12 sub templates {
13 0 ▶ my ( $self, $args ) = @_;
Subroutine templates: not called CC=2 SCAR=17.9
Pod documented
14  
15 # for old
16 0 ▶ unless (ref($args) eq 'HASH') {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $args eq "HASH") 0 0 0
17 0 $args = { type => $args };
18 }
19  
20 0 my $uri = URI->new('/gitignore/templates');
21 0 $uri->query_form($args);
22 0 return $self->query($uri->as_string);
23 }
24  
25 sub template {
26 0 ▶ my ( $self, $template, $args ) = @_;
Subroutine template: not called CC=2 SCAR=17.9
Pod documented
27  
28 # for old
29 0 ▶ unless (ref($args) eq 'HASH') {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $args eq "HASH") 0 0 0
30 0 $args = { type => $args };
31 }
32  
33 0 my $uri = URI->new("/gitignore/templates/" . uri_escape($template));
34 0 $uri->query_form($args);
35 0 return $self->query($uri->as_string);
36 }
37  
38 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 1 1;
41 __END__
« GitHub/V3/Search.pm ↑ Summary GitHub/V3/PullRequests.pm »