Condition Coverage

blib/lib/Net/Async/Matrix.pm
Criterion Covered Total %
condition 20 56 35.7


and 3 conditions

line !l l&&!r l&&r condition
287 0 0 13 length $content and $content ne '""'
358 0 0 1 length $content and $content ne '""'
409 0 1 13 defined $params{'user_id'} and defined $params{'access_token'}
442 0 0 1 defined $params{'user_id'} and defined $params{'password'}
533 0 0 0 defined(my $secret = $params{'captcha_bypass_secret'}) and defined $params{'user_id'}
1103 1 0 0 defined $user->$_ and $content->{$_} eq $user->$_

or 2 conditions

line l !l condition
414 1 12 $self->{'enable_events'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
170 11 0 0 $params->{'ua'} ||= do { require Net::Async::HTTP; 'Net::Async::HTTP'->VERSION('0.36'); my $ua = 'Net::Async::HTTP'->new('fail_on_error', 1, 'max_connections_per_host', 3, 'user_agent', 'Net::Async::Matrix', 'pipeline', 0); $self->add_child($ua); $ua }
188 10 1 0 delete $params->{'make_delay'} || $self->_capture_weakself(sub { my($self, $secs) = @_; $self->loop->delay_future('after', $secs); } )
331 0 0 0 defined $params{'file'} or defined $params{'fh'}
338 0 0 0 $fh or open $fh, '<', $params{'file'}
345 0 0 0 $params{'content_length'} // &Net::Async::Matrix::stat($fh)->size
583 0 12 0 $self->{'synced_future'} //= $self->loop->new_future
609 2 14 0 $self->{'start_f'} ||= do { undef $self->{'synced_future'}; foreach my $room (values %{$$self{'rooms_by_id'};}) { $room->_reset_for_sync; } ; $self->sync->then(sub { my($sync) = @_; $self->_incoming_sync($sync); $self->start_longpoll('since', $sync->{'next_batch'}); return $self->await_synced->done; } )->on_fail(sub { undef $self->{'start_f'}; } ) }
702 14 6 0 $self->{'users_by_id'}{$user_id} ||= User($user_id, undef, undef, undef)
741 15 1 0 $self->{'rooms_by_id'}{$room_id} // $self->_make_room($room_id)
825 0 0 0 $user_id //= $self->{'user_id'}
1081 1 0 0 defined $params{'content'} or defined $params{'file'}
1 0 0 defined $params{'content'} or defined $params{'file'} or defined $params{'fh'}