File Coverage

blib/lib/Test/Ping/Ties/PROTO.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::PROTO;
2             # ABSTRACT: Protocol Tie variable to Test::Ping
3             $Test::Ping::Ties::PROTO::VERSION = '0.210';
4 19     19   132 use strict;
  19         39  
  19         554  
5 19     19   97 use warnings;
  19         38  
  19         440  
6              
7 19     19   90 use Net::Ping;
  19         36  
  19         878  
8 19     19   120 use Test::Ping;
  19         55  
  19         458  
9 19     19   99 use Tie::Scalar;
  19         43  
  19         2264  
10              
11 20     20   1079 sub TIESCALAR { return bless {}, shift; }
12 2     2   366 sub FETCH { return Test::Ping->_ping_object()->{'proto'}; }
13 8     8   2570 sub STORE { Test::Ping->_ping_object()->{'proto'} = $_[1]; }
14              
15             1;
16              
17             __END__