Branch Coverage

blib/lib/Mojo/Netdata.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
24 0 0 unless @{$self->collectors;}
33 1 1 if (-r $file)
40 1 2 unless $file->basename =~ /\.conf\.pl$/u
41 0 2 unless my $d = _eval_file($file)
43 1 1 if ($d->{'collector'}) { }
62 0 2 unless $self->config->{'collectors'}
65 0 3 unless ($collector_class and $collector_class =~ /^[\w:]+$/u)
69 0 3 unless (eval "require $collector_class;1")
74 0 3 unless my $collector = $collector_class->new->register($collector_config, $self)
87 0 3 if $@