Webqq/Model/Remote/_shutup_group_member.pm

filter: Statementstmt 33.3% 4 / 12 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 27.7% 5 / 18 CC 3 SCAR 22.2
CC
3
Cov
25%
_shutup_group_member
12.0
BEGIN
1.0
CRAP 9.2
« Webqq/Model/Remote/_get_user_info.pm ↑ Summary Webqq/Model/Remote/_invite_friend.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 0 ▶sub Mojo::Webqq::Model::_shutup_group_member{
Subroutine _shutup_group_member: not called CC=3 SCAR=24.8
3 0 my $self = shift;
4 0 my($uid,$t,@qq) = @_;
5 0 my $api = "http://qinfo.clt.qq.com/cgi-bin/qun_info/set_group_shutup";
6 0 my $json = $self->http_post($api,{Referer=>"http://qinfo.clt.qq.com/qinfo_v3/member.html",json=>1},form=>{gc=>$uid,shutup_list=>$self->to_json([map {{uin=>$_,t=>$t}} @qq]),bkn=>$self->get_csrf_token});
7 0 ▶ return if not defined $json;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $json 0 0 0
8 0 ▶ return if $json->{ec}!=0;
Branch: 1 branch
BranchTrueFalseTotal
if $json->{"ec"} != 0 0 0 0
9 0 return 1;
10 }
11 1 1;
« Webqq/Model/Remote/_get_user_info.pm ↑ Summary Webqq/Model/Remote/_invite_friend.pm »