File Coverage

blib/lib/Net/GitHub/V3/GitData.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Net::GitHub::V3::GitData;
2              
3 1     1   8 use Moo;
  1         2  
  1         6  
4              
5             our $VERSION = '1.02';
6             our $AUTHORITY = 'cpan:FAYLAND';
7              
8 1     1   323 use URI::Escape;
  1         2  
  1         173  
9              
10             with 'Net::GitHub::V3::Query';
11              
12             ## build methods on fly
13             my %__methods = (
14             blob => { url => "/repos/%s/%s/git/blobs/%s" },
15             create_blob => { url => "/repos/%s/%s/git/blobs", method => 'POST', args => 1 },
16              
17             commit => { url => "/repos/%s/%s/git/commits/%s" },
18             create_commit => { url => "/repos/%s/%s/git/commits", method => 'POST', args => 1 },
19              
20             tree => { url => "/repos/%s/%s/git/trees/%s" },
21             trees => { url => "/repos/%s/%s/git/trees/%s?recursive=1" },
22             create_tree => { url => "/repos/%s/%s/git/trees", method => 'POST', args => 1 },
23              
24             refs => { url => "/repos/%s/%s/git/refs" },
25             ref => { url => "/repos/%s/%s/git/refs/%s" },
26             create_ref => { url => "/repos/%s/%s/git/refs", method => 'POST', args => 1 },
27             update_ref => { url => "/repos/%s/%s/git/refs/%s", method => 'PATCH', args => 1 },
28              
29             tag => { url => "/repos/%s/%s/git/tags/%s" },
30             create_tag => { url => "/repos/%s/%s/git/tags", method => 'POST', args => 1 },
31              
32             );
33             __build_methods(__PACKAGE__, %__methods);
34              
35 1     1   8 no Moo;
  1         2  
  1         4  
36              
37             1;
38             __END__