Condition Coverage

blib/lib/Mojo/Weixin/Message/Handle.pm
Criterion Covered Total %
condition 0 85 0.0


and 3 conditions

line !l l&&!r l&&r condition
27 0 0 0 $msg->media_size == 0 and $msg->media_type eq 'emoticon'
50 0 0 0 $msg->media_size == 0 and $msg->media_type eq 'emoticon'
114 0 0 0 defined $retcode and defined $selector
115 0 0 0 $retcode == 0 and $selector != 0
0 0 0 $retcode == 0 and $selector == 0
0 0 0 $retcode == 1101 and $self->stop_with_mobile
228 0 0 0 $e->{'MsgType'} == 49 and $e->{'AppMsgType'} == 6
0 0 0 $e->{'MsgType'} == 49 and $e->{'AppMsgType'} == 5
0 0 0 $e->{'MsgType'} == 49 and $e->{'AppMsgType'} == 2000
350 0 0 0 defined $member_id and defined $content
410 0 0 0 $msg->{'content'} eq "\344\275\240\346\222\244\345\233\236\344\272\206\344\270\200\346\235\241\346\266\210\346\201\257" and $msg->{'class'} eq 'recv'
471 0 0 0 ref $object ne 'Mojo::Weixin::Friend' and ref $object ne 'Mojo::Weixin::Group'
500 0 0 0 ref $object ne 'Mojo::Weixin::Friend' and ref $object ne 'Mojo::Weixin::Group'
514 0 0 0 not defined $media_info->{'media_code'} and defined $media_info->{'media_type'}
521 0 0 0 defined $media_info->{'media_code'} and not defined $media_info->{'media_type'}
645 0 0 0 defined $msg_id and defined $receiver_id
652 0 0 0 defined $msg_id and defined $receiver_id

or 2 conditions

line l !l condition
169 0 0 $$e{$Mojo::Weixin::KEY_MAP_GROUP{$_}} // ''
175 0 0 $$m{$Mojo::Weixin::KEY_MAP_GROUP_MEMBER{$_}} // ''
226 0 0 $$e{$Mojo::Weixin::KEY_MAP_MESSAGE{$_}} // ''
391 0 0 $msg->{'app_title'} || "\346\234\252\347\237\245"
0 0 $msg->{'app_desc'} || "\346\234\252\347\237\245"
0 0 $msg->{'app_name'} || "\346\234\252\347\237\245"
0 0 $msg->{'app_url'} || "\346\234\252\347\237\245"
442 0 0 $msg->{'card_name'} || "\346\234\252\347\237\245"
0 0 $msg->{'card_sex'} || "\346\234\252\347\237\245"
0 0 $msg->{'card_province'} || "\346\234\252\347\237\245"
0 0 $msg->{'card_city'} || "\346\234\252\347\237\245"
0 0 $msg->{'card_avatar'} || "\346\234\252\347\237\245"
515 0 0 $Mojo::Weixin::KEY_MAP_MEDIA_CODE{$media_info->{'media_type'}} // 6
522 0 0 $KEY_MAP_MEDIA_TYPE{$media_info->{'media_code'}} || 'file'

or 3 conditions

line l !l&&r !l&&!r condition
310 0 0 0 $e->{'StatusNotifyCode'} == 4 or $e->{'StatusNotifyCode'} == 2
550 0 0 0 $media_info->{'media_path'} || $media_info->{'media_id'}