Branch Coverage

blib/lib/Weixin/Message.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
10 0 0 if (defined $json) { }
12 0 0 unless defined $d
13 0 0 if $$d{'BaseRequest'}{'Ret'} != 0
30 0 0 if (first sub { $retcode == $_; } , keys %logout_code)
34 0 0 if (defined $retcode and defined $selector and $retcode == 0 and $selector != 0) { }
0 0 elsif (defined $retcode and defined $selector and $retcode == 0) { }
0 0 elsif ($$self{'_synccheck_error_count'} < 3) { }
53 0 0 if (first sub { $$d{'BaseResponse'}{'Ret'} == $_; } , keys %logout_code) { }
0 0 elsif ($$d{'BaseResponse'}{'Ret'} != 0) { }
61 0 0 if $$d{'SyncKey'}{'Count'} != 0
62 0 0 if $$d{'SKey'}
63 0 0 if ($$d{'AddMsgCount'} != 0)
80 0 0 if ($$d{'ModContactCount'} != 0)
82 0 0 if ($self->is_chatroom($$_{'UserName'})) { }
91 0 0 unless (defined $chatroom)
96 0 0 if defined $$_{$k}
98 0 0 if ($$_{'MemberCount'} != 0)
104 0 0 if defined $$m{$k}
109 0 0 if ($is_new_chatroom) { }
115 0 0 unless exists $members{$$_{'Id'}}
117 0 0 if exists $members{$$_{'Id'}}{$k}
128 0 0 if $$_{'Sex'}
131 0 0 unless (defined $friend)
136 0 0 if defined $$_{$k}
138 0 0 if $is_new_friend
142 0 0 if ($$d{'DelContactCount'} != 0)
144 0 0 if ($self->is_chatroom($$_{'UserName'})) { }
154 0 0 if ($$d{'ModChatRoomMemberCount'} != 0)
157 0 0 if ($$d{'ContinueFlag'} != 0) { }
170 0 0 if ($$msg{'MsgType'} eq 1) { }
0 0 elsif ($$msg{'MsgType'} eq 51) { }
0 0 elsif ($$msg{'MsgType'} eq 9999) { }
0 0 elsif ($$msg{'MsgType'} eq 49) { }
0 0 elsif ($$msg{'MsgType'} eq 47) { }
172 0 0 if ($$msg{'FromId'} eq $$self{'_data'}{'user'}{'Id'}) { }
0 0 elsif ($$msg{'ToId'} eq $$self{'_data'}{'user'}{'Id'}) { }
179 0 0 if ($$msg{'MsgClass'} eq 'send') { }
0 0 elsif ($$msg{'MsgClass'} eq 'recv') { }
180 0 0 $self->is_chatroom($$msg{'ToId'}) ? :
181 0 0 if ($$msg{'Type'} eq 'friend_message') { }
0 0 elsif ($$msg{'Type'} eq 'chatroom_message') { }
202 0 0 $self->is_chatroom($$msg{'FromId'}) ? :
203 0 0 if ($$msg{'Type'} eq 'friend_message') { }
0 0 elsif ($$msg{'Type'} eq 'chatroom_message') { }
266 0 0 if @_ != 0
276 0 0 unless (defined $friend and $$friend{'Id'})
280 0 0 unless ($content)
291 0 0 unless (defined $chatroom and $$chatroom{'ChatRoomId'})
295 0 0 unless ($content)
307 0 0 if $$msg{'MsgClass'} ne 'recv'
308 0 0 if ($$msg{'Type'} eq 'chatroom_message') { }
0 0 elsif ($$msg{'Type'} eq 'friend_message') { }
325 0 0 if ($type eq 'chatroom_message') { }
0 0 elsif ($type eq 'friend_message') { }