Branch Coverage

blib/lib/Net/Async/IRC.pm
Criterion Covered Total %
branch 20 40 50.0


line true false branch
82 0 0 if ($self->{'on_login_f'})
87 0 0 if $on_closed
142 8 19 if exists $args{$_}
145 1 8 if (exists $args{'nick'})
214 4 2 if $self->read_handle
228 0 0 if ($args{'on_resolve_error'}) { }
0 0 elsif ($on_error) { }
237 0 0 if ($args{'on_connect_error'}) { }
0 0 elsif ($on_error) { }
297 0 4 unless my $nick = delete $args{'nick'} || $self->{'nick'}
298 0 4 unless my $user = delete $args{'user'} || $self->{'user'}
302 3 1 unless (defined $self->{'nick'})
307 0 4 unless not defined $on_login or ref $on_login eq 'CODE'
311 2 2 if $self->{'use_caps'}
313 0 4 if defined $pass
320 1 3 if $on_login
341 0 3 if (not $self->is_connected) { }
368 1 0 if (@request) { }
463 1 0 if ($hints->{'prefix_is_me'})
479 4 0 if ($self->{'on_login_f'} and @{$self->{'on_login_f'};})