Branch Coverage

blib/lib/POE/Component/Client/NSCA.pm
Criterion Covered Total %
branch 28 66 42.4


line true false branch
119 0 4 unless $params{'host'}
121 0 4 unless $params{'event'}
123 0 4 unless $params{'password'} or $params{'encryption'} eq 1
125 0 4 unless defined $params{'encryption'}
127 0 4 unless $params{'message'} and ref $params{'message'} eq 'HASH'
130 0 12 unless defined $params{'message'}{$item}
134 0 4 unless defined $params{'port'}
135 4 0 unless defined $params{'timeout'} and $params{'timeout'} =~ /^\d+$/
138 0 4 ref $options eq 'HASH' ? :
152 0 4 if ($kernel == $sender and not $$self{'session'})
156 0 4 if ($$self{'session'}) { }
157 0 0 if (my $ref = $kernel->alias_resolve($$self{'session'})) { }
227 0 2 unless (length $input == 132)
247 0 2 unless ($data_packet_string_crypt)
269 0 4 if ($type eq 'badinit')
273 0 4 if ($type eq 'badencrypt')
277 2 2 if ($type eq 'sockerr')
281 0 2 if ($type eq 'timeout')
297 4 0 unless defined $$message{'svc_description'}
298 0 4 if (length $$message{'host_name'} >= 64)
302 0 4 if (length $$message{'svc_description'} >= 128)
306 0 4 if (length $$message{'plugin_output'} >= 512)
337 2048 2048 if ($crc & 1) { }
353 1 1 if ($encryption_method == 0) { }
1 0 elsif ($encryption_method == 1) { }
382 1 0 if ($password)
401 0 0 if ($HAVE_MCRYPT)
403 0 0 if (defined $mcrypts{$encryption_method})
411 0 0 if (defined $td)
420 0 0 if $@
426 0 0 if (not $evalok || defined $crypted and defined $encryption_method)
427 0 0 if (defined $mcrypts{$encryption_method} and !1)
429 0 0 unless ($routine =~ /_$/)