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             $Test::Ping::Ties::PROTO::VERSION = '0.204';
3 19     19   106 use strict;
  19         35  
  19         734  
4 19     19   79 use warnings;
  19         32  
  19         429  
5             # ABSTRACT: Protocol Tie variable to Test::Ping
6              
7 19     19   73 use Net::Ping;
  19         32  
  19         740  
8 19     19   108 use Test::Ping;
  19         32  
  19         500  
9 19     19   92 use Tie::Scalar;
  19         35  
  19         2030  
10              
11 20     20   2092 sub TIESCALAR { return bless {}, shift; }
12 2     2   294 sub FETCH { return Test::Ping->_ping_object()->{'proto'}; }
13 8     8   2086 sub STORE { Test::Ping->_ping_object()->{'proto'} = $_[1]; }
14              
15             1;
16              
17             __END__