blib/lib/Web/Authenticate/UserAgentProvider/EnvUserAgentProvider.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
get_user_agent
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 package Web::Authenticate::UserAgentProvider::EnvUserAgentProvider;
3 $Web::Authenticate::UserAgentProvider::EnvUserAgentProvider::VERSION = '0.004';
4 use Mouse;
5 #ABSTRACT: Implementation of Web::Authentication::UserAgentProvider::Role that users environment variables.
6  
7 with 'Web::Authenticate::UserAgentProvider::Role';
8  
9  
10 sub get_user_agent { $ENV{HTTP_USER_AGENT} }
11  
12 1;
13  
14 __END__
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 Web::Authenticate::UserAgentProvider::EnvUserAgentProvider - Implementation of Web::Authentication::UserAgentProvider::Role that users environment variables.
23  
24 =head1 VERSION
25  
26 version 0.004
27  
28 =head1 METHODS
29  
30 =head2 get_user_agent
31  
32 Returns the user's user agent using $ENV{HTTP_USER_AGENT}.
33  
34 =head1 AUTHOR
35  
36 Adam Hopkins <srchulo@cpan.org>
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 This software is copyright (c) 2017 by Adam Hopkins.
41  
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44  
45 =cut