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 | 1237 | use strict; | |||
3 | 6 | ||||||
3 | 87 | ||||||
11 | 3 | 3 | 15 | use warnings; | |||
3 | 7 | ||||||
3 | 220 | ||||||
12 | |||||||
13 | sub new { | ||||||
14 | 4 | 4 | 0 | 17 | my ( $class, $struct_hr ) = @_; | ||
15 | |||||||
16 | 4 | 24 | my %self = %$struct_hr; | ||||
17 | |||||||
18 | 4 | 88 | return bless \%self, $class; | ||||
19 | } | ||||||
20 | |||||||
21 | 1; |