Inspect/Connection.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
expire
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package Net::Inspect::Connection;
4 use base 'Net::Inspect::Flow';
5 use fields qw(expire);
6  
7 sub expire {
8 my ($self,$time) = @_;
9 return $self->{expire} && $time>$self->{expire};
10 }
11  
12 1;
13  
14 __END__