Branch Coverage

blib/lib/Circle/Net/Matrix/Room.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
48 0 0 unless my $code = $self->can($method)
53 0 0 unless eval { do { $self->$code(@args); 1 } }
144 0 0 if ($type =~ /^(.*)\*$/) { }
178 0 0 if $event = $state->get_event('m.room.name')
190 0 0 if $local_aliases
196 0 0 if @aliases
200 0 0 if @others == 1
228 0 0 if $members_by_membership{'invite'}
275 0 0 if ($type eq 'm.text') { }
0 0 elsif ($type eq 'm.notice') { }
0 0 elsif ($type eq 'm.emote') { }
318 0 0 if (my $membership = $changes{'membership'})
319 0 0 if (($membership->[0] // '') ne 'join' and $membership->[1] eq 'join') { }
0 0 elsif ($membership->[0] eq 'join' and not defined $membership->[1]) { }
0 0 elsif ($membership->[1] eq 'invite') { }
360 0 0 if (my $displayname = $changes{'displayname'}) { }
0 0 elsif (my $level = $changes{'level'}) { }
0 0 elsif (keys %changes) { }
401 0 0 $member ? :
408 0 0 if (my $code = $watches->{$type})
416 0 0 if $type eq 'm.room.create'
419 0 0 if $type eq 'm.room.avatar_url'
421 0 0 if (my $key = $key_for_event{$type}) { }
422 0 0 unless my $values = $changes{$key}
424 0 0 $member ? :
449 0 0 unless (@members)
467 0 0 unless $member->user->user_id eq $my_userid
469 0 0 if ($event_id eq $self->{'latest_event_id'})