Branch Coverage

blib/lib/MogileFS/Config.pm
Criterion Covered Total %
branch 8 112 7.1


line true false branch
26 6 42 if @_ == 3
30 0 48 if (my $worker = 'MogileFS::ProcManager'->is_child) { }
48 0 elsif (defined $v) { }
40 30 48 if @_ == 3
115 0 0 if $dummy_workerport
118 0 0 if not $config and -r $DEFAULT_CONFIG
121 0 0 if ($config and not $skipconfig)
122 0 0 unless open my $cf, "<$config"
135 0 0 if $line =~ /^\s*(\#.*)?$/
136 0 0 unless $line =~ /$configLine/
139 0 0 if $cmdline{'debug'}
183 0 0 if $cfgfile{'plugins'}
184 0 0 if $cmdline{'plugins'}
193 0 0 if defined $cfgfile{'listen'}
198 0 0 /:/ ? :
204 0 0 if defined $cmdline{$name}
205 0 0 if defined $cfgfile{$name}
213 0 0 unless $rv
218 78 0 if @_ == 2
220 0 78 unless defined $conf{$k}
226 0 0 unless ($sto and $sto->ping)
241 0 0 unless ($sversion == $expect_ver or 'MogileFS::Config'->config('no_schema_check'))
256 0 0 unless $min_fidid
265 0 0 unless $key
281 0 0 unless $has_cached_settings
282 0 0 unless (defined $val)
284 0 0 if exists $server_settings{$key}
291 0 0 unless defined $fallback
292 0 0 if (not $has_cached_settings and $fallback)
302 0 0 unless $have_memc_module
306 0 0 if $last_memc_server_fetch > $now - 30
311 0 0 unless @servers
326 0 0 if $key eq 'fsck_checksum'
327 0 0 if $key =~ /^fsck_/
338 0 0 unless $_[0]
341 0 0 unless $v
342 0 0 if $v =~ /^(0|f|off|n)/i
343 0 0 if $v =~ /^(1|t|on|y)/i
348 0 0 unless $v
349 0 0 if $v =~ /^\d+$/
356 0 0 if $v =~ /$re/
362 0 0 unless $n
373 0 0 if ($key =~ /^slave_/)
374 0 0 if ($key eq 'skip_devcount')
375 0 0 if ($key eq 'skip_mkcol')
376 0 0 if ($key eq 'case_sensitive_list_keys')
377 0 0 if ($key eq 'memcache_servers')
378 0 0 if ($key eq 'memcache_ttl')
379 0 0 if ($key eq 'internal_queue_limit')
382 0 0 if ($key eq 'network_zones')
383 0 0 if ($key =~ /^zone_/)
386 0 0 if ($key =~ /^queue_/)
388 0 0 if ($key eq 'fsck_checksum')
391 0 0 if $v eq 'off'
392 0 0 if $v eq 'class'
393 0 0 if 'MogileFS::Checksum'->valid_alg($v)