File Coverage

blib/lib/Test/Ping/Ties/PORT.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::PORT;
2             # ABSTRACT: Port Tie variable to Test::Ping
3             $Test::Ping::Ties::PORT::VERSION = '0.210';
4 19     19   136 use strict;
  19         43  
  19         690  
5 19     19   113 use warnings;
  19         42  
  19         501  
6              
7 19     19   88 use Net::Ping;
  19         123  
  19         855  
8 19     19   107 use Test::Ping;
  19         41  
  19         350  
9 19     19   89 use Tie::Scalar;
  19         35  
  19         2207  
10              
11 20     20   1316 sub TIESCALAR { return bless {}, shift; }
12 2     2   376 sub FETCH { return Test::Ping->_ping_object()->{'port_num'}; }
13 12     12   2708 sub STORE { Test::Ping->_ping_object()->{'port_num'} = $_[1]; }
14              
15             1;
16              
17             __END__