File Coverage

blib/lib/Net/OSCAR/Callbacks/19/buddylist_error.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   46 $Net::OSCAR::Callbacks::VERSION = '1.928';
4             }
5 1     1   13 use strict;
  1         3  
  1         53  
6 1     1   8 use warnings;
  1         3  
  1         56  
7 1     1   7 use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
  1         3  
  1         409  
8             sub {
9              
10             if($session->{gotbl}) {
11             delete $session->{gotbl};
12             $connection->log_print(OSCAR_DBG_WARN, "Couldn't get your buddylist - probably because you don't have one.");
13             got_buddylist($session, $connection);
14             } else {
15             $connection->log_print_cond(OSCAR_DBG_INFO, sub { "Buddylist error:", hexdump($data{data}) });
16             }
17              
18              
19             };