APIClient/Authn/Username.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
username
2.0
BEGIN
2.0
CRAP 2.0
1 package cPanel::APIClient::Authn::Username;
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<perlartistic>.
9  
10 use strict;
11 use warnings;
12  
13 sub new {
14 my ( $class, $username ) = @_;
15  
16 return bless \$username, $class;
17 }
18  
19 sub username {
20 return ${ $_[0] };
21 }
22  
23 1;