Branch Coverage

blib/lib/Net/Async/IRC/Protocol.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
141 0 0 if $on_closed
176 1 0 if $self->{'on_ping_timeout'}
197 4 23 if exists $args{$_}
200 1 8 if (exists $args{'pingtime'})
204 1 8 if (exists $args{'pongtime'})
208 1 8 if (exists $args{'encoding'})
211 0 1 unless defined $obj
224 6 7 if $message->command =~ /^\d+$/
225 8 5 if $message->args > 1
249 1 5 unless my $connect_f = $self->{'connect_f'}
265 1 1 unless my $login_f = $self->{'login_f'}
276 8 6 $pingtimer->is_running ? :
278 13 1 if eval { do { $self->Protocol::IRC::on_read($$buffref); 1 } }
285 1 0 if $self->maybe_invoke_event('on_irc_error', $e)
385 13 21 unless my $retref = $self->maybe_invoke_event(@_)
394 0 1 unless $self->{'pongtimer'}->is_running
399 1 0 if $self->{'on_pong_reply'}