blib/lib/cPanel/APIClient/Response.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 13 | 92.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package cPanel::APIClient::Response; | ||||||
2 | |||||||
3 | # Copyright 2020 cPanel, L. L. C. | ||||||
4 | # All rights reserved. | ||||||
5 | # http://cpanel.net | ||||||
6 | # | ||||||
7 | # This is free software; you can redistribute it and/or modify it under the | ||||||
8 | # same terms as Perl itself. See L |
||||||
9 | |||||||
10 | 3 | 3 | 1104 | use strict; | |||
3 | 8 | ||||||
3 | 76 | ||||||
11 | 3 | 3 | 13 | use warnings; | |||
3 | 6 | ||||||
3 | 212 | ||||||
12 | |||||||
13 | sub new { | ||||||
14 | 4 | 4 | 0 | 15 | my ( $class, $struct_hr ) = @_; | ||
15 | |||||||
16 | 4 | 27 | my %self = %$struct_hr; | ||||
17 | |||||||
18 | 4 | 85 | return bless \%self, $class; | ||||
19 | } | ||||||
20 | |||||||
21 | 1; |