Branch Coverage

blib/lib/MMM.pm
Criterion Covered Total %
branch 6 82 7.3


line true false branch
59 0 2 unless $$mmm{'config'} = 'Config::IniFiles'->new(-'file', $$mmm{'configfile'}, -'default', 'default')
65 0 2 unless $mmm->_parse_config
70 0 2 unless ($res)
89 0 3 defined $$self{'runtime_verbosity'} ? :
146 0 0 unless $message
149 0 0 $level =~ /^\d$/ ? :
151 0 0 unless $$loglevel{$keylogl}
152 0 0 if ($$loglevel{$keylogl}[0] == -1)
156 0 0 if $$loglevel{$keylogl}[0] > $$self{'verbosity'}
157 0 0 if ($$self{'logcallback'} and ref $$self{'logcallback'} eq 'CODE') { }
162 0 0 $$loglevel{$keylogl}[0] > 2 ? :
163 0 0 if ($$self{'use_syslog'}) { }
179 0 0 unless $message
182 0 0 $level =~ /^\d$/ ? :
184 0 0 unless $$loglevel{$keylogl}
185 0 0 if $$loglevel{$keylogl}[0] > $$self{'verbosity'}
197 0 3 if (exists $$loglevel{uc $verbosity}) { }
3 0 elsif ($verbosity =~ /^\d+$/) { }
257 0 0 unless $$self{'config'}
260 0 0 if $job eq 'default'
261 0 0 unless ($$self{'config'}->SectionExists($job))
281 0 0 if $_->is_disable
282 0 0 if ($_->val('url')) { }
283 0 0 if (my $mi = 'MMM::Mirror'->new('url', $_->val('url')))
288 0 0 unless $_->source
293 0 0 if (open my $h, '>', $self->statedir . '/hosts.xml')
335 0 0 if ($kid > 0)
337 0 0 if ($$self{'process'}{$kid}) { }
338 0 0 defined $_ ? :
356 0 0 unless $$self{'ios'}
360 0 0 unless (defined $l)
372 0 0 unless $$self{'process'}
0 0 if (my($pid) = grep({$$self{'process'}{$_}->name eq $taskname;} keys %{{} unless $$self{'process'};})) { }
382 0 0 if (my $pid = $self->_task_is_registred($process->name))
388 0 0 unless ($notraplog)
394 0 0 unless defined $pid
395 0 0 if ($pid) { }
398 0 0 unless ($notraplog)
403 0 0 if defined $oldInt
417 0 0 unless $notraplog
432 0 0 unless (-d $self->statedir)