File Coverage

blib/lib/Pinto/Globals.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Global variables used across the Pinto utilities
2              
3             package Pinto::Globals;
4              
5 1     1   23474 use strict;
  1         3  
  1         35  
6 1     1   5 use warnings;
  1         2  
  1         26  
7              
8 1     1   1054 use LWP::UserAgent;
  1         71882  
  1         147  
9              
10             #------------------------------------------------------------------------------
11              
12             our $VERSION = '0.09995'; # VERSION
13              
14             #------------------------------------------------------------------------------
15              
16             ## no critic qw(PackageVars);
17             our $current_utc_time = undef;
18             our $current_time_offset = undef;
19             our $current_username = undef;
20             our $current_author_id = undef;
21             our $is_interactive = undef;
22              
23             #------------------------------------------------------------------------------
24             # TODO: Decide how to expose this
25              
26             our $UA = LWP::UserAgent->new(
27             agent => 'Pinto/' . (__PACKAGE__->VERSION || '???'),
28             env_proxy => 1,
29             keep_alive => 5,
30             );
31              
32             #------------------------------------------------------------------------------
33             1;
34              
35             __END__