File Coverage

blib/lib/Test/Ping/Ties/TIMEOUT.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 26 26 100.0


line stmt bran cond sub pod time code
1             package Test::Ping::Ties::TIMEOUT;
2             $Test::Ping::Ties::TIMEOUT::VERSION = '0.204';
3 19     19   584 use strict;
  19         29  
  19         464  
4 19     19   76 use warnings;
  19         37  
  19         362  
5             # ABSTRACT: Timeout Tie variable to Test::Ping
6              
7 19     19   265 use Net::Ping;
  19         29  
  19         692  
8 19     19   93 use Test::Ping;
  19         28  
  19         408  
9 19     19   79 use Tie::Scalar;
  19         28  
  19         1678  
10              
11 20     20   883 sub TIESCALAR { return bless {}, shift; }
12 32     32   1110 sub FETCH { return Test::Ping->_ping_object()->{'timeout'}; }
13 3     3   530 sub STORE { Test::Ping->_ping_object()->{'timeout'} = $_[1]; }
14              
15             1;
16              
17             __END__