Branch Coverage

blib/lib/Config/Model/CheckList.pm
Criterion Covered Total %
branch 160 214 74.7


line true false branch
57 29 28 if (defined $self->refer_to or defined $self->computed_refer_to)
63 3 54 if (defined $self->warp)
81 3 54 if $self->{'warp'}
83 29 28 if (defined $self->{'ref_object'})
88 27 2 if $level ne "hidden"
111 0 62 if ($logger->is_trace)
127 30 32 if (defined $args{'choice'})
133 0 62 if (defined $args{'default'})
138 3 59 if (defined $args{'default_list'})
145 3 59 if (defined $args{'upstream_default_list'})
153 0 62 if scalar keys %args
157 0 62 if ($self->has_warped_slaves)
165 0 134 ref $_[0] ? :
171 78 56 if defined $self->{'choice_hash'}
180 0 402 unless defined $self->{$field}
182 0 109 unless defined $self->{'choice_hash'}{$item}
192 28 1 if (defined $self->refer_to) { }
1 0 elsif (defined $self->computed_refer_to) { }
211 0 1 if $path =~ /\$/
213 0 1 unless $master->can("register_dependency")
249 4 55 if $self->instance->initial_load and not $args{'really'}
255 0 8 if $logger->is_debug
265 0 11 ref $_[0] eq 'ARRAY' ? :
266 0 11 ref $_[0] eq 'ARRAY' ? :
269 3 8 if (defined $self->{'ref_object'})
275 12 0 if $self->_store($_, 1, $check)
278 9 0 unless $self->instance->initial_load
287 8 236 $inst->layered ? :
0 244 $inst->preset ? :
293 34 210 if ($old_v)
298 0 244 if ($self->{'ordered'} and $changed)
312 0 706 if ($value != 0 and $value != 1)
323 697 9 if ($ok) { }
324 58 613 $inst->layered ? :
26 671 $inst->preset ? :
329 489 208 if (not defined $old_v or $old_v ne $value)
339 17 680 if ($self->{'ordered'} and $value)
341 16 1 unless scalar grep({$choice eq $_;} @$ord)
349 1 8 if defined $self->{'ref_object'}
350 4 5 if ($check eq 'yes') { }
5 0 elsif ($check eq 'skip') { }
358 4 131 if ($ok and $changed and $self->has_warped_slaves and not $self->instance->layered || $self->instance->preset)
373 40 14 ref $arg eq 'ARRAY' ? :
374 40 14 ref $arg eq 'ARRAY' ? :
383 0 4 if (defined $self->{'ref_object'})
389 3 1 if $self->_store($_, 0, $check)
392 4 0 unless $self->instance->initial_load
408 0 170 if ($mode and not defined $accept_mode{$mode})
424 12 0 if ($ok) { }
0 0 elsif ($check eq 'yes') { }
426 0 12 if (my $err = $self->is_bad_mode($mode))
439 0 0 $dat && !$std_v ? :
0 12 $mode eq 'backend' ? :
0 12 $mode eq 'user' ? :
0 12 $mode eq 'non_upstream_default' ? :
0 12 $mode eq 'standard' ? :
0 12 $mode eq 'default' ? :
0 12 $mode eq 'upstream_default' ? :
0 12 $mode eq 'layered' ? :
0 12 $mode eq 'preset' ? :
0 12 $mode eq 'custom' ? :
458 0 0 if defined $self->{'ref_object'}
472 74 160 if (defined $self->{'ref_object'})
476 1 233 unless (defined $self->{'choice'})
490 98 6 unless $self->{'default_choice'}
500 0 0 unless $self->{'upstream_default_data'}
507 0 3 unless @_
510 1 2 if defined $help and defined $on_value
519 1 0 if (defined $self->refer_to)
522 0 1 $self->ordered ? :
545 59 99 @_ > 1 ? :
549 158 0 unless $mode eq $k
554 0 158 if (my $err = $self->is_bad_mode($mode))
571 45 4 unless $self->{'_std_backup'}
49 109 &none(sub {
573 4 94 if (not $mode and &any(sub {
582 22 7 grep({$dat->{$_} xor $std{$_};} keys %h) ? :
17 99 $mode eq 'user' ? :
4 116 $mode eq 'standard' ? :
1 120 $mode eq 'default' ? :
1 121 $mode eq 'upstream_default' ? :
4 122 $mode eq 'layered' ? :
3 126 $mode eq 'preset' ? :
29 129 $mode eq 'custom' ? :
591 150 8 wantarray ? :
598 15 135 $self->{'ordered'} ? :
600 139 11 wantarray ? :
626 0 0 if ($path)
639 0 3 if ($path)
656 19 2 @_ == 3 ? :
1 21 @_ == 1 ? :
679 107 534 if $self->_store($c, $v, $check)
689 34 12 if @changed and not $self->instance->initial_load
695 3 2 ref $_[0] eq 'HASH' ? :
696 3 2 ref $_[0] eq 'HASH' ? :
700 37 36 if (defined $check_list{$c}) { }
712 12 0 @_ > 1 ? :
716 7 5 if (ref $data eq 'ARRAY') { }
3 2 elsif (ref $data eq 'HASH') { }
2 0 elsif (not ref $data) { }
739 0 2 unless ($self->is_checked($param))
750 1 4 if ($_ eq $a) { }
1 3 elsif ($_ eq $b) { }
762 0 3 unless ($self->is_checked($c))
773 2 10 if ($list->[$i] eq $c)
784 0 2 unless ($self->is_checked($c))
795 1 5 if ($list->[$i] eq $c)