Branch Coverage

blib/lib/Mojo/Weixin/Message/Base.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
12 0 0 defined $self->code && $self->code == 0 ? :
22 0 0 if (defined $json) { }
23 0 0 if ($json->{'MsgID'})
24 0 0 $self->type eq 'group_message' ? :
27 0 0 if ($json->{'BaseResponse'}{'Ret'} != 0) { }
46 0 0 if substr($key, 0, 1) eq '_'
47 0 0 if ($key eq 'sender') { }
0 0 elsif ($key eq 'receiver') { }
0 0 elsif ($key eq 'group') { }
0 0 elsif ($key eq 'media_data') { }
0 0 elsif ($key eq 'events') { }
0 0 elsif (ref $self->{$key} eq '') { }
48 0 0 if $self->type eq 'group_notice'
54 0 0 if $self->sender->type eq 'friend'
57 0 0 if $self->type eq 'group_message' and $self->class eq 'send'
65 0 0 if $self->type ne 'group_message' and $self->type ne 'group_notice'
71 0 0 defined $self->{$key} ? :
83 0 0 unless $self->content
86 0 0 if ($self->class eq 'recv') { }
0 0 elsif ($self->class eq 'send') { }
91 0 0 if ($self->type eq 'group_message') { }
0 0 elsif ($self->type =~ /^friend_message$/) { }
100 0 0 unless $displayname
108 0 0 if ($self->class eq 'recv') { }
0 0 elsif ($self->class eq 'send') { }
113 0 0 if ($self->type eq 'group_message') { }
0 0 elsif ($self->type =~ /^friend_message$/) { }
133 0 0 if (my $n = &blessed($self->{$_})) { }
0 0 elsif ($_ eq 'member' and ref $self->{$_} eq 'ARRAY') { }
0 0 elsif ($_ eq 'media_data') { }
0 0 elsif ($_ eq 'events') { }