Branch Coverage

blib/lib/Mojo/Webqq/Model.pm
Criterion Covered Total %
branch 0 394 0.0


line true false branch
73 0 0 $i % 2 == 0 ? :
95 0 0 if (defined $self->model_status->{'friend'} and defined $self->model_status->{'group'}) { }
102 0 0 $is_fail ? :
111 0 0 unless ($self->is_support_model_ext)
115 0 0 if defined $self->csrf_token
120 0 0 if ($t)
132 0 0 if ref $callback ne 'CODE'
133 0 0 if @{$self->friend;} == 0
141 0 0 if ref $callback ne 'CODE'
142 0 0 if @{$self->group;} == 0
151 0 0 if ref $callback ne 'CODE'
152 0 0 if @{$self->discuss;} == 0
160 0 0 if ref $callback ne 'CODE'
161 0 0 if (@{$self->group;} == 0) { }
166 0 0 if $_->is_empty
177 0 0 if ref $callback ne 'CODE'
178 0 0 if (@{$self->discuss;} == 0) { }
183 0 0 if $_->is_empty
198 0 0 unless (defined $user_info)
207 0 0 if ($is_blocking) { }
219 0 0 if ref $friend ne 'Mojo::Webqq::Friend'
221 0 0 if ($friend->id eq $self->friend->[$i]->id)
232 0 0 if ref $friend ne 'Mojo::Webqq::Friend'
233 0 0 if (@{$self->friend;} == 0)
237 0 0 if ($nocheck)
242 0 0 if (defined $f) { }
254 0 0 unless defined $p{'is_blocking'}
255 0 0 unless ($self->is_support_model_ext)
261 0 0 if (defined $friends_ext_info and ref $friends_ext_info eq 'ARRAY') { }
267 0 0 unless exists $ext->{$id}
271 0 0 if ($self->log_level eq 'debug')
273 0 0 unless $_->uid
284 0 0 if ($p{'is_blocking'}) { }
294 0 0 if (ref $_[0] eq 'Mojo::Webqq::Friend')
297 0 0 unless defined $p{'is_blocking'}
301 0 0 if (defined $friend_info) { }
304 0 0 if ($p{'is_blocking'}) { }
314 0 0 unless defined $p{'is_blocking'}
315 0 0 unless defined $p{'is_update_friend_ext'}
319 0 0 if (defined $friends_info) { }
322 0 0 if (ref $self->friend eq 'ARRAY' and @{$self->friend;} == 0) { }
341 0 0 if $p{'is_update_friend_ext'}
345 0 0 if ($p{'is_blocking'}) { }
357 0 0 if 0 == grep({defined $p{$_};} keys %p)
358 0 0 if @{$self->friend;} == 0
359 0 0 if (wantarray) { }
360 0 0 &first(sub { $p{$_} ne $f->$_; } , grep({defined $p{$_};} keys %p)) ? :
363 0 0 &first(sub { $p{$_} ne $f->$_; } , grep({defined $p{$_};} keys %p)) ? :
371 0 0 if ref $group ne 'Mojo::Webqq::Group'
372 0 0 if (@{$self->group;} == 0)
376 0 0 if ($nocheck)
381 0 0 if (defined $g) { }
392 0 0 if ref $group ne 'Mojo::Webqq::Group'
394 0 0 if ($group->id eq $self->group->[$i]->id)
403 0 0 unless ($self->is_support_model_ext)
407 0 0 if @{$self->group;} == 0
409 0 0 if ref $_[0] eq 'Mojo::Webqq::Group'
411 0 0 unless defined $p{'is_blocking'}
412 0 0 unless defined $p{'is_update_group_member_ext'}
414 0 0 if (defined $group and defined $group->uid) { }
0 0 elsif (not defined $group || &first(sub { not defined $_->uid; } , @{$self->group;})) { }
415 0 0 if $p{'is_update_group_member_ext'}
420 0 0 if $p{'is_update_group_member_ext'}
426 0 0 if (defined $group_list_ext and ref $group_list_ext eq 'ARRAY') { }
430 0 0 defined $group ? :
431 0 0 if ($p{'is_blocking'}) { }
434 0 0 unless exists $gext->{$id}
436 0 0 if $p{'is_update_group_member_ext'}
443 0 0 unless exists $gext->{$id}
446 0 0 if $p{'is_update_group_member_ext'}
455 0 0 if ($p{'is_blocking'}) { }
466 0 0 unless ($self->is_support_model_ext)
470 0 0 if ref $group ne 'Mojo::Webqq::Group'
471 0 0 unless (defined $group->uid)
475 0 0 if ($group->is_empty)
480 0 0 unless defined $p{'is_blocking'}
483 0 0 if (defined $group_info_ext) { }
488 0 0 if (ref $self->group_member_identify_callback eq 'CODE') { }
492 0 0 $self->group_member_card_ext_only ? :
499 0 0 unless exists $mext->{$id}
502 0 0 if ($self->log_level eq 'debug')
504 0 0 unless $_->uid
514 0 0 if ($p{'is_blocking'}) { }
526 0 0 if ref $group ne 'Mojo::Webqq::Group'
528 0 0 unless defined $p{'is_blocking'}
529 0 0 unless defined $p{'is_update_group_member_ext'}
532 0 0 if (defined $group_info) { }
534 0 0 if (ref $group_info->{'member'} eq 'ARRAY') { }
536 0 0 if $p{'is_update_group_member_ext'}
543 0 0 if ($p{'is_blocking'}) { }
553 0 0 if (ref $_[0] eq 'Mojo::Webqq::Group')
556 0 0 unless defined $p{'is_blocking'}
557 0 0 unless defined $p{'is_update_group_member'}
558 0 0 unless defined $p{'is_update_group_ext'}
559 0 0 unless defined $p{'is_update_group_member_ext'}
562 0 0 if (defined $group_info) { }
563 0 0 if (ref $group_info->{'member'} eq 'ARRAY') { }
566 0 0 if $p{'is_update_group_ext'}
573 0 0 if ($p{'is_blocking'}) { }
583 0 0 unless defined $p{'is_blocking'}
584 0 0 unless defined $p{'is_update_group_member'}
585 0 0 unless defined $p{'is_update_group_ext'}
586 0 0 unless defined $p{'is_update_group_member_ext'}
590 0 0 unless (defined $group_list)
599 0 0 if (ref $self->group eq 'ARRAY' and @{$self->group;} == 0) { }
618 0 0 if ($p{'is_update_group_member'})
619 0 0 if ($p{'is_blocking'}) { }
632 0 0 if ($p{'is_update_group_ext'})
637 0 0 if ($p{'is_blocking'}) { }
650 0 0 if 0 == grep({defined $p{$_};} keys %p)
651 0 0 if @{$self->group;} == 0
653 0 0 if (wantarray) { }
654 0 0 &first(sub { $p{$_} ne $g->$_; } , grep({defined $p{$_};} keys %p)) ? :
657 0 0 &first(sub { $p{$_} ne $g->$_; } , grep({defined $p{$_};} keys %p)) ? :
665 0 0 if 0 == grep({defined $p{$_};} keys %p)
666 0 0 if (@{$self->group;} == 0) { }
671 0 0 if $_->is_empty
675 0 0 if (wantarray) { }
676 0 0 &first(sub { $p{$_} ne $m->$_; } , grep({defined $p{$_};} keys %p)) ? :
679 0 0 &first(sub { $p{$_} ne $m->$_; } , grep({defined $p{$_};} keys %p)) ? :
687 0 0 if ref $discuss ne 'Mojo::Webqq::Discuss'
688 0 0 if (@{$self->discuss;} == 0)
692 0 0 if ($nocheck)
697 0 0 if (defined $d) { }
709 0 0 if ref $discuss ne 'Mojo::Webqq::Discuss'
711 0 0 if ($discuss->id eq $self->discuss->[$i]->id)
724 0 0 if ref $discuss ne 'Mojo::Webqq::Discuss'
727 0 0 unless defined $p{'is_blocking'}
730 0 0 if (defined $discuss_info) { }
731 0 0 if (ref $discuss_info->{'member'} eq 'ARRAY') { }
739 0 0 if ($p{'is_blocking'}) { }
750 0 0 if (ref $_[0] eq 'Mojo::Webqq::Discuss')
754 0 0 unless defined $p{'is_blocking'}
757 0 0 if (defined $discuss_info) { }
758 0 0 if (ref $discuss_info->{'member'} eq 'ARRAY') { }
766 0 0 if ($p{'is_blocking'}) { }
776 0 0 unless defined $p{'is_blocking'}
777 0 0 unless defined $p{'is_update_discuss_member'}
782 0 0 unless (defined $discuss_list)
790 0 0 if (ref $self->discuss eq 'ARRAY' and @{$self->discuss;} == 0) { }
809 0 0 if ($p{'is_update_discuss_member'})
815 0 0 if ($p{'is_blocking'}) { }
828 0 0 if 0 == grep({defined $p{$_};} keys %p)
829 0 0 if @{$self->discuss;} == 0
831 0 0 if (wantarray) { }
832 0 0 &first(sub { $p{$_} ne $d->$_; } , grep({defined $p{$_};} keys %p)) ? :
835 0 0 &first(sub { $p{$_} ne $d->$_; } , grep({defined $p{$_};} keys %p)) ? :
843 0 0 if 0 == grep({defined $p{$_};} keys %p)
844 0 0 if (@{$self->discuss;} == 0) { }
849 0 0 if $_->is_empty
853 0 0 if (wantarray) { }
854 0 0 &first(sub { $p{$_} ne $m->$_; } , grep({defined $p{$_};} keys %p)) ? :
857 0 0 &first(sub { $p{$_} ne $m->$_; } , grep({defined $p{$_};} keys %p)) ? :
863 0 0 unless ($self->is_support_model_ext)
869 0 0 unless (defined $group->uid)
873 0 0 if ($group->role ne 'manage' and $group->role ne 'create')
878 0 0 unless $_->is_friend
881 0 0 if ($ret) { }
887 0 0 unless ($self->is_support_model_ext)
893 0 0 unless (defined $group->uid)
897 0 0 if ($group->role ne 'manage' and $group->role ne 'create')
902 0 0 unless $_->is_group_member
905 0 0 if ($ret) { }
918 0 0 unless ($self->is_support_model_ext)
925 0 0 if ($time < 60)
929 0 0 unless (defined $group->uid)
933 0 0 if ($group->role ne 'manage' and $group->role ne 'create')
938 0 0 unless $_->is_group_member
939 0 0 if ($_->role eq 'admin' or $_->role eq 'owner')
945 0 0 if ($ret) { }
951 0 0 unless ($self->is_support_model_ext)
957 0 0 unless (defined $group->uid)
961 0 0 if ($group->role ne 'manage' and $group->role ne 'create')
966 0 0 unless $_->is_group_member
967 0 0 if ($_->role eq 'admin' or $_->role eq 'owner')
973 0 0 if ($ret) { }
979 0 0 unless ($self->is_support_model_ext)
985 0 0 unless (defined $group->uid)
989 0 0 if ($group->role ne 'create')
994 0 0 unless $_->is_group_member
997 0 0 if ($ret) { }
1008 0 0 unless (defined $group->uid)
1012 0 0 if ($group->role ne 'create')
1017 0 0 unless $_->is_group_member
1020 0 0 if ($ret) { }
1032 0 0 unless (defined $group->uid)
1036 0 0 if (not $member->is_me and $group->role ne 'create' and $group->role ne 'manage')
1040 0 0 unless $member->is_group_member
1042 0 0 if ($ret) { }
1044 0 0 if (length $card) { }
1054 0 0 unless ($self->is_support_model_ext)
1058 0 0 unless $group->is_group
1059 0 0 unless (defined $group->uid)
1064 0 0 if ($ret) { }
1073 0 0 if @{$self->friend;} == 0
1078 0 0 if @{$self->group;} == 0
1083 0 0 if @{$self->discuss;} == 0