Branch Coverage

blib/lib/Monitoring/Livestatus/INET.pm
Criterion Covered Total %
branch 6 24 25.0


line true false branch
33 1 3 if scalar @args == 1
35 2 2 unless defined $options{'name'}
40 0 4 if ref $self->{'peer'} ne ''
42 0 4 if (($self->{'peer'} // $self->{'server'}) =~ m[^tls://]mx)
68 0 0 if ($peer_addr =~ s[tls://][]mx)
73 0 0 if defined $self->{'verify'} and $self->{'verify'} == 0
78 0 0 if ($tls) { }
83 0 0 unless (defined $sock and $sock->connected)
85 0 0 if ($self->{'errors_are_fatal'})
97 0 0 if ($@)
103 0 0 if (defined $self->{'query_timeout'})
117 0 0 unless defined $sock