blib/lib/Net/OSCAR/Callbacks/23/authorization_response.pm

filter: Statementstmt 40.7% 11 / 27 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 33.3% 15 / 45 CC 7 SCAR 35.8
CC
7
Cov
28%
__ANON__
56.0
BEGIN
1.0
BEGIN
1.0
CRAP 36.0
« blib/lib/Net/OSCAR/Callbacks/1/incoming_extended_information.pm ↑ Summary blib/lib/Net/OSCAR/Callbacks/1/self_information.pm »
1 package Net::OSCAR::Callbacks;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Net::OSCAR::Callbacks::VERSION = '1.928';
4 }
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 0 ▶sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
9  
10 0 ▶if($data{error}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Net::OSCAR::Callbacks::data{'error'}) { } 0 0 0
11 0 my $error = $data{error};
12 0 ▶ $session->crapout($connection, "Invalid screenname.") if $error == 0x01;
Branch: 1 branch
BranchTrueFalseTotal
if $error == 1 0 0 0
13 0 ▶ $session->crapout($connection, "Invalid password.") if $error == 0x05;
Branch: 1 branch
BranchTrueFalseTotal
if $error == 5 0 0 0
14 0 ▶ $session->crapout($connection, "You've been connecting too frequently.") if $error == 0x18;
Branch: 1 branch
BranchTrueFalseTotal
if $error == 24 0 0 0
15 0 ▶ my($errstr) = ((ERRORS)[$error]) || "unknown error";
Condition0%0/2
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error] || 'unknown error'
l!l
00
MC/DC0%0/1
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error] || 'unknown error'
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error]
Truth table0%0/2
A
A= ('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error]
Aresult
11
00
16 0 ▶ $errstr .= " ($data{error_details})" if $data{error_details};
Branch: 1 branch
BranchTrueFalseTotal
if $Net::OSCAR::Callbacks::data{"error_details"} 0 0 0
17 0 $session->crapout($connection, $errstr, $error);
18 0 return 0;
19 } else {
20 0 $connection->log_print(OSCAR_DBG_SIGNON, "Login OK - connecting to BOS");
21 $session->addconn(
22 auth => $data{auth_cookie},
23 conntype => CONNTYPE_BOS,
24 description => "basic OSCAR service",
25 peer => $data{server_ip}
26 0 );
27 0 $connection->{closing} = 1;
28 0 $connection->disconnect;
29 0 $session->{screenname} = $data{screenname};
30 0 $session->{email} = $data{email};
31  
32 0 Net::OSCAR::Screenname->new(\$session->{screenname});
33 }
34  
35 1 };
« blib/lib/Net/OSCAR/Callbacks/1/incoming_extended_information.pm ↑ Summary blib/lib/Net/OSCAR/Callbacks/1/self_information.pm »