blib/lib/Pinto/Globals.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 91.3% 21 / 23 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Pinto/Config.pm ↑ Summary blib/lib/App/Pinto/Command/clean.pm »
1 # ABSTRACT: Global variables used across the Pinto utilities
2  
3 package Pinto::Globals;
4  
5 150 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 150 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 150 ▶use LWP::UserAgent;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #------------------------------------------------------------------------------
11  
12 150 our $VERSION = '0.14'; # VERSION
13  
14 #------------------------------------------------------------------------------
15  
16 ## no critic qw(PackageVars);
17 150 our $current_utc_time = undef;
18 150 our $current_time_offset = undef;
19 150 our $current_username = undef;
20 150 our $current_author_id = undef;
21 150 our $is_interactive = undef;
22  
23 #------------------------------------------------------------------------------
24 # TODO: Decide how to expose this
25  
26 150 ▶our $UA = LWP::UserAgent->new(
Condition50%1/2
__PACKAGE__->VERSION || '???'
l!l
1500
MC/DC0%0/1
__PACKAGE__->VERSION || '???'
__PACKAGE__->VERSION
Truth table50%1/2
A
A= __PACKAGE__->VERSION
Aresult
11
00
27 agent => 'Pinto/' . (__PACKAGE__->VERSION || '???'),
28 env_proxy => 1,
29 keep_alive => 5,
30 );
31  
32 #------------------------------------------------------------------------------
33 150 1;
34  
35 __END__
« blib/lib/Pinto/Config.pm ↑ Summary blib/lib/App/Pinto/Command/clean.pm »