Condition Coverage

blib/lib/Net/Async/Matrix/Room.pm
Criterion Covered Total %
condition 30 84 35.7


and 2 conditions

line l !l condition
726 0 0 warn "ARGH: roomevent_member with unknown user id '${user_id}'" and return
1125 0 0 warn "TODO: Unknown member '${user_id}' for forward message" and return
1137 0 0 warn "TODO: Unknown member '${user_id}' for backward message" and return

and 3 conditions

line !l l&&!r l&&r condition
172 4 0 7 defined $old and defined $new
4 5 2 defined $old and defined $new and $old eq $new
194 0 0 1 defined $old and defined $new
0 1 0 defined $old and defined $new and $old eq $new
269 9 7 0 $sync->{'state'} and $sync->{'state'}{'events'}
0 2 5 $sync->{'state'} and $sync->{'state'}{'events'} and @{$sync->{'state'}{'events'};}
349 0 3 4 $method and my $code = $self->can($method)
789 1 1 0 $_ and $_ = _pushdown_changes($_)
1150 0 0 0 $changes{$_} and $member->$_ = $changes{$_}[1]

or 2 conditions

line l !l condition
338 9 0 $_->[1] //= undef
482 0 0 $event->{'prev_content'}{'aliases'} // []
483 0 0 $event->{'content'}{'aliases'} // []
719 1 3 $changes{'membership'}[$idx] // ''
759 0 0 $_->membership // ''
983 0 0 $args{'limit'} // 20
984 0 0 $self->{'pagination_token'} // 'END'
992 0 0 $self->{'back_members_by_userid'} //= {&pairmap(sub { $a, Member($b->user, $b->displayname, $b->membership); } , %{$$self{'members_by_userid'};})}
995 0 0 $self->{'back_aliases_by_hs'} //= {&pairmap(sub { $a, [@$b]; } , %{$$self{'aliases_by_hs'};})}

or 3 conditions

line l !l&&r !l&&!r condition
172 7 4 1 defined $old || defined $new
1 0 11 not defined $old || defined $new or defined $old and defined $new and $old eq $new
194 1 0 0 defined $old || defined $new
0 0 1 not defined $old || defined $new or defined $old and defined $new and $old eq $new
306 23 7 0 $self->{'synced_future'} //= $self->loop->new_future
425 2 0 0 $self->live_state->name || $self->room_id
619 0 0 0 not defined $oldlevels->{$_} or $oldlevels->{$_} != $newlevels->{$_}
634 0 0 0 not defined $oldlevels->{$_} or $oldlevels->{$_} != $newlevels->{$_}
683 0 0 0 $events{'ops_levels'}{"${_}_level"} //= $self->{'levels'}{$_}
799 1 0 0 $oldlevel //= $default
800 1 0 0 $newlevel //= $default