Ping/Ties/TIMEOUT.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod n/a totaltotal 78.5% 22 / 28 CC 1 SCAR 3.2
CC
1
Cov
85%
TIESCALAR
2.0
FETCH
2.0
STORE
2.0
CRAP 1.4
« Ping/Ties/SERVICE_CHECK.pm ↑ Summary Ping/Ties/BIND.pm »
1 package Test::Ping::Ties::TIMEOUT;
2 # ABSTRACT: Timeout Tie variable to Test::Ping
3 19 $Test::Ping::Ties::TIMEOUT::VERSION = '0.210';
4 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 19 ▶use Net::Ping;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 19 ▶use Test::Ping;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 19 ▶use Tie::Scalar;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub TIESCALAR { return bless {}, shift; }
Subroutine TIESCALAR: not called CC=1 SCAR=6.9
12 0 ▶sub FETCH { return Test::Ping->_ping_object()->{'timeout'}; }
Subroutine FETCH: not called CC=1 SCAR=6.9
13 0 ▶sub STORE { Test::Ping->_ping_object()->{'timeout'} = $_[1]; }
Subroutine STORE: not called CC=1 SCAR=6.9
14  
15 19 1;
16  
17 __END__
« Ping/Ties/SERVICE_CHECK.pm ↑ Summary Ping/Ties/BIND.pm »