Branch Coverage

blib/lib/Lemonldap/NG/Common/Conf.pm
Criterion Covered Total %
branch 24 100 24.0


line true false branch
54 5 1 if (ref $_[0]) { }
58 1 0 if (@_ and $#_ % 2 == 1)
62 6 0 unless ($$self{'mdone'})
63 0 6 unless ($$self{'type'})
68 0 0 if (defined $localconf)
72 0 6 unless ($$self{'type'})
76 0 6 unless ($$self{'type'} =~ /^[\w:]+$/)
79 6 0 unless $$self{'type'} =~ /^Lemonldap::/
82 1 5 if ($@)
86 0 5 unless $self->prereq
90 0 5 if ($$self{'localStorage'} and not defined $$self{'refLocalStorage'})
92 0 0 if ($@) { }
113 0 0 unless ($$self{'force'})
114 0 0 if $$conf{'cfgNum'} != $last
115 0 0 if $self->isLocked or not $self->lock
117 0 0 unless $$self{'cfgNumFixed'}
123 0 0 unless ($tmp > 0)
126 0 0 $tmp ? :
130 0 0 $self->unlock ? :
145 0 0 if ($$args{'local'} and ref $$self{'refLocalStorage'} and my $res = $$self{'refLocalStorage'}->get('conf')) { }
157 0 0 unless ($$args{'cfgNum'})
161 0 0 if (not ref $$self{'refLocalStorage'}) { }
167 0 0 if $@
168 0 0 if (ref $r and $$r{'cfgNum'} == $$args{'cfgNum'}) { }
184 0 0 unless (defined $$r{$name})
191 0 0 if ($@)
199 0 0 if (defined $$r{'useXForwardedForIP'} and $$r{'useXForwardedForIP'} == 1)
206 0 0 if ($$r{'authentication'} eq 'Choice')
213 0 0 if (defined $$r{$_})
219 0 0 if $$self{'refLocalStorage'} and not $$args{'noCache'}
243 0 1 unless defined $loaddefault
247 1 0 unless ($cfg = $$iniObj{$file})
252 0 1 unless (-r $file)
253 0 0 if ($section eq 'configuration')
264 0 1 unless (defined $cfg)
270 0 1 unless ($cfg->SectionExists('all'))
276 0 1 if ($section eq 'configuration' and not $cfg->SectionExists('configuration'))
284 0 1 if ($loaddefault)
287 0 0 if ($$r{$_} =~ /^[{\[].*[}\]]$/ or $$r{$_} =~ /^sub\s*{.*}$/)
289 0 0 if ($@)
298 0 1 if $section eq 'all'
301 0 1 unless $cfg->SectionExists($section)
306 1 3 if ($$r{$_} =~ /^[{\[].*[}\]]$/ or $$r{$_} =~ /^sub\s*{.*}$/)
308 0 1 if ($@)
324 0 0 if $@
335 0 0 unless $$args{'cfgNum'}
336 0 0 if ($$args{'cfgNum'} < 0)
338 0 0 @a + $$args{'cfgNum'} > 0 ? :
345 0 0 if $$self{'refLocalStorage'} and not $$args{'noCache'}
415 0 0 unless @a + $c > 0