Branch Coverage

blib/lib/Metabrik/Server/Snmp.pm
Criterion Covered Total %
branch 0 22 0.0


line true false branch
83 0 0 unless my $ft = 'Metabrik::File::Text'->new_from_brik_init($self)
87 0 0 unless $ft->write($conf, $self->datadir . '/snmpd.conf')
98 0 0 unless my $sc = 'Metabrik::Shell::Command'->new_from_brik_init($self)
99 0 0 unless my $wf = 'Metabrik::Worker::Fork'->new_from_brik_init($self)
101 0 0 unless defined(my $pid = $wf->start)
104 0 0 unless ($pid)
106 0 0 unless $sc->system($cmd)
124 0 0 if ($port < 1024 and $< != 0)
129 0 0 unless $self->_create_snmpd_conf
132 0 0 unless $self->_start_snmpd
162 0 0 if (defined $self->_snmpd_pid)