Branch Coverage

blib/lib/Mojo/Weixin/Group.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
19 0 0 if $self->name
21 0 0 $default_name ? :
26 0 0 @_ > 1 ? :
0 0 @_ ? :
27 0 0 unless $self->uid
28 0 0 if (exists $self->{'member'} and ref $self->{'member'} eq 'ARRAY')
30 0 0 if ref $_ ne 'Mojo::Weixin::Group::Member'
40 0 0 ref $self->member eq 'ARRAY' ? :
46 0 0 if ($_ eq 'member' and ref $hash->{'member'} eq 'ARRAY') { }
47 0 0 unless @{$hash->{'member'};}
50 0 0 ref $_ eq 'Mojo::Weixin::Group::Member' ? :
53 0 0 if ($self->is_empty) { }
58 0 0 if (@{$new_members;})
59 0 0 if (my(@m) = $self->client->_webwxbatchgetcontact_group_member($self->_eid, map({$_->id;} @{$new_members;})))
76 0 0 if (exists $hash->{$_})
77 0 0 if $_ eq 'name'
78 0 0 if (defined $hash->{$_} and defined $self->{$_}) { }
0 0 elsif (not !(defined $hash->{$_} || defined $self->{$_})) { }
79 0 0 if ($hash->{$_} ne $self->{$_})
83 0 0 if defined $self->client
90 0 0 if defined $self->client
101 0 0 if ($p{'_check_remote'})
102 0 0 if (wantarray) { }
104 0 0 if (@g) { }
112 0 0 if (defined $g) { }
124 0 0 if ref $member ne 'Mojo::Weixin::Group::Member'
125 0 0 if $self->_add($self->member, $member) == 1
130 0 0 if ref $member ne 'Mojo::Weixin::Group::Member'
131 0 0 if $self->_remove($self->member, $member) == 1