Branch Coverage

blib/lib/POE/Component/Server/NSCA.pm
Criterion Covered Total %
branch 28 68 41.1


line true false branch
97 0 3 unless $opts{'password'}
99 0 3 unless defined $opts{'encryption'}
101 0 3 unless defined $mcrypts{$opts{'encryption'}}
105 0 3 unless ref $access eq 'ARRAY'
107 0 3 unless $acl->isa('Net::Netmask')
111 1 2 ref $options eq 'HASH' ? :
142 0 3 unless $_[0]{'listener'}
149 0 3 if ($$self{'alias'}) { }
156 3 0 defined $$self{'address'} ? :
3 0 defined $$self{'port'} ? :
173 2 0 if (ref $_[10] eq 'HASH') { }
0 0 elsif (ref $_[10] eq 'ARRAY') { }
183 0 2 unless ($args{'event'})
187 0 2 if (defined $$self{'sessions'}{$sender_id}) { }
201 0 0 if (ref $_[10] eq 'HASH') { }
0 0 elsif (ref $_[10] eq 'ARRAY') { }
212 0 0 if $data
223 3 0 unless $$self{'alias'}
241 0 3 unless grep {$_->match($peeraddr);} @{$$self{'access'};}
251 0 3 unless $wheel
274 0 3 unless $wheel_id and defined $$self{'clients'}{$wheel_id}
280 0 0 unless $self->_conn_exists($id)
287 0 1 unless $self->_conn_exists($id)
294 0 2 unless $self->_conn_exists($id)
298 0 2 unless length $packet == 720
300 0 2 unless $input
302 0 2 unless $version == 3
345 2048 2048 if ($crc & 1) { }
362 1 1 if ($encryption_method == 0) { }
1 0 elsif ($encryption_method == 1) { }
410 0 0 if ($HAVE_MCRYPT)
412 0 0 if (defined $mcrypts{$encryption_method})
420 0 0 if (defined $td)
429 0 0 if $@