Branch Coverage

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


line true false branch
27 0 0 unless @{$self->collectors;}
36 1 1 if (-r $file)
43 1 2 unless $file->basename =~ /\.conf\.pl$/u
44 0 2 unless my $d = _eval_file($file)
46 1 1 if ($d->{'collector'}) { }
65 0 1 unless $self->config->{'collectors'}
68 0 2 unless ($collector_class and $collector_class =~ /^[\w:]+$/u)
72 0 2 unless (eval "require $collector_class;1")
77 0 2 unless my $collector = $collector_class->new->register($collector_config, $self)
90 0 3 if $@