Weixin/Plugin/AutoVerify.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
call
2.0
CRAP 2.0
1 package Mojo::Weixin::Plugin::AutoVerify;
2 our $PRIORITY = 1;
3 sub call {
4 my $client = shift;
5 my $data = shift;
6 $client->on(friend_request=>sub{
7 my($client,$id,$displayname,$verify,$ticket) = @_;
8 $client->accept_friend_request($id,$displayname,$ticket);
9 });
10 }
11 1;