API/Endpoint/Custom_gallery.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
customGallery
2.0
customGalleryImage
2.0
customGalleryAdd
2.0
CRAP 2.0
1 package Imgur::API::Endpoint::Custom_gallery;
2  
3 use strict;
4 use Mouse;
5 extends 'Imgur::API::Endpoint';
6  
7 sub customGallery {
8 my ($this,%p) = @_;
9  
10 return $this->dispatcher->request(
11 $this->path("3/g/custom",[],['sort','page'],\%p),
12 'get',
13 \%p
14 );
15 }
16  
17 sub customGalleryImage {
18 my ($this,%p) = @_;
19  
20 return $this->dispatcher->request(
21 $this->path("3/g/custom/%s",['item_id'],[],\%p),
22 'get',
23 \%p
24 );
25 }
26  
27 sub customGalleryAdd {
28 my ($this,%p) = @_;
29  
30 return $this->dispatcher->request(
31 $this->path("3/g/custom/add_tags",[],[],\%p),
32 'put',
33 \%p
34 );
35 }
36  
37 sub customGalleryRemove {
38 my ($this,%p) = @_;
39  
40 return $this->dispatcher->request(
41 $this->path("3/g/custom/remove_tags",[],[],\%p),
42 'delete',
43 \%p
44 );
45 }
46  
47  
48  
49 1;
50 __PACKAGE__->meta->make_immutable;
51