File Coverage

blib/lib/Net/OSCAR/Callbacks/1/unpause.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             package Net::OSCAR::Callbacks;
2             BEGIN {
3 1     1   54 $Net::OSCAR::Callbacks::VERSION = '1.928';
4             }
5 1     1   12 use strict;
  1         3  
  1         40  
6 1     1   6 use warnings;
  1         2  
  1         53  
7 1     1   4 use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
  1         3  
  1         292  
8             sub {
9              
10             $connection->log_print(OSCAR_DBG_WARN, "Migration cancelled by server!");
11             $connection->unpause();
12             $connection->loglevel(delete $connection->{__old_loglevel});
13              
14             };