File Coverage

blib/lib/Mojo/Webqq/Client/Remote/_cookie_proxy.pm
Criterion Covered Total %
statement 0 7 0.0
branch 0 4 0.0
condition 0 3 0.0
subroutine 0 1 0.0
pod n/a
total 0 15 0.0


line stmt bran cond sub pod time code
1             sub Mojo::Webqq::Client::_cookie_proxy {
2 0     0     my $self = shift;
3 0 0         return 1 if $self->domain eq 'web2.qq.com';
4 0           my $p_skey = $self->search_cookie("p_skey");
5 0           my $p_uin = $self->search_cookie("p_uin");
6 0 0 0       $self->ua->cookie_jar->add(
7             Mojo::Cookie::Response->new(
8             name => "p_skey",
9             value => $p_skey,
10             domain => $self->domain,
11             path => "/",
12             ),
13             Mojo::Cookie::Response->new(
14             name => "p_uin",
15             value => $p_uin,
16             domain => $self->domain,
17             path => "/",
18             ),
19             ) if defined $p_skey and defined $p_uin;
20 0           $self->save_cookie();
21 0           return 1;
22             };
23             1;