Branch Coverage

blib/lib/Alice.pm
Criterion Covered Total %
branch 14 80 17.5


line true false branch
128 0 3 if (exists $options{$_})
147 0 0 unless $self->config->{'loaded'}
173 0 0 if $cb
176 0 0 unless $self->connected_ircs
192 0 0 if (my $window = $self->get_window($$window_ids[$count]))
193 0 0 unless $window->is_channel
203 0 0 if $window->type eq 'info'
206 0 0 if ($irc and $irc->is_connected)
207 0 0 if ($window->type eq 'channel') { }
226 0 4 if $title eq 'info'
228 3 1 if (my $window = $self->get_window($id))
235 0 0 unless $message
253 0 2 $irc->is_channel($title) ? :
254 0 2 if ($window->is_channel)
278 0 2 if $title eq 'info'
280 1 1 if (my $window = $self->find_window($title, $irc))
309 0 1 if ($window->is_channel)
316 1 0 if $window->type ne 'info'
324 0 1 if $$config{'autoconnect'}
333 0 0 if ($new_config)
340 0 0 if (not $self->has_irc($network)) { }
346 0 0 if ($$config{'ircname'} ne $prev{$network})
353 0 0 unless (exists $self->config->servers->{$name})
355 0 0 if ($irc->is_disconnected) { }
356 0 0 if $irc->reconnect_timer
388 0 0 if ($messages[0]{'highlight'})
398 0 1 unless $body
405 2 0 if $self->no_streams or not @messages
413 0 0 if $self->no_streams
421 0 0 if ($limit - $total < 20)
432 0 0 @$msgs ? :
437 0 0 if (@$msgs == $step and $total < $limit) { }
442 0 0 if $cb
451 0 0 if (my $window = $self->get_window($$message{'source'}))
453 0 0 unless $stream
455 0 0 if $$message{'html'}
458 0 0 unless $line
523 0 0 unless (defined $$self{'_auth_enabled'})
537 0 0 if ($self->auth_enabled)
546 0 0 defined $message ? :