Branch Coverage

blib/lib/Config/Hierarchical.pm
Criterion Covered Total %
branch 1 440 0.2


line true false branch
510 0 1 unless defined $class
587 0 0 if ($$self{'VERBOSE'})
594 0 0 if (exists $$self{'VALIDATORS'})
600 0 0 if (exists $$self{'SET_VALIDATOR'})
602 0 0 if ('CODE' ne ref $$self{'SET_VALIDATOR'})
608 0 0 if (exists $$self{'EVALUATOR'})
610 0 0 if ('CODE' ne ref $$self{'EVALUATOR'})
619 0 0 if (exists $$self{'LOCKED_CATEGORIES'})
621 0 0 if ('ARRAY' ne ref $$self{'LOCKED_CATEGORIES'})
630 0 0 if (exists $$self{'INITIAL_VALUES'})
634 0 0 if (exists $$element_data{'ALIAS_CATEGORY'}) { }
646 0 0 if (defined $category_locks)
653 0 0 if exists $$self{'GET_CATEGORIES'}
692 0 0 if (/^<(.*)>$/msx) { }
697 0 0 if ($name =~ /^<(.*)>$/msx)
701 0 0 if ($name_without_brackets =~ /<|>/msx) { }
719 0 0 if (1 == @{$$self{'CATEGORY_NAMES'};}) { }
725 0 0 unless exists $$self{'DEFAULT_CATEGORY'}
728 0 0 unless (exists $$self{'VALID_CATEGORIES'}{$$self{'DEFAULT_CATEGORY'}})
796 0 0 if ('HASH' ne ref $validator_definition or $EXPECTED_NUMBER_OF_ARGUMENTS_FOR_ADD_VALIDATOR != keys %{$validator_definition;} or not exists $$validator_definition{'CATEGORY_NAMES'} or 'ARRAY' ne ref $$validator_definition{'CATEGORY_NAMES'} or not exists $$validator_definition{'NAMES'} or 'ARRAY' ne ref $$validator_definition{'NAMES'} or not exists $$validator_definition{'VALIDATORS'} or 'HASH' ne ref $$validator_definition{'VALIDATORS'})
816 0 0 unless (exists $$self{'VALID_CATEGORIES'}{$category_name})
847 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$category_name})
852 0 0 if ($$self{'VERBOSE'})
857 0 0 if (exists $$self{'CATEGORIES'}{$category_name}{$variable_name}) { }
859 0 0 if (exists $$self{'CATEGORIES'}{$category_name}{$variable_name}{'VALUE'})
872 0 0 if ('CODE' ne ref $$validator_definition{'VALIDATORS'}{$validator})
877 0 0 if (exists $$config_variable{'VALIDATORS'}{$validator})
890 0 0 if ($config_variable_value_exists)
894 0 0 unless ($$validator_definition{'VALIDATORS'}{$validator}($config_variable_value))
960 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
961 0 0 if defined $options{'NAME'}
962 0 0 if defined $options{'VALUE'}
965 0 0 if (exists $$self{'CATEGORIES'}{$category})
971 0 0 if ($$self{'VERBOSE'})
999 0 0 if exists $options{'COMMENT'}
1000 0 0 if exists $options{'HISTORY'}
1073 0 0 if (@options % 2)
1082 0 0 unless (exists $$valid_options{$option_name})
1088 0 0 if (defined $options{'FILE'} and not defined $options{'LINE'} or not defined $options{'FILE'} and defined $options{'LINE'})
1306 0 0 unless (defined $options{'FILE'})
1316 0 0 if (exists $options{'CATEGORY'}) { }
1318 0 0 if ($$self{'WARN_FOR_EXPLICIT_CATEGORY'})
1333 0 0 defined $options{'VALUE'} ? :
1336 0 0 if ($$self{'VERBOSE'})
1342 0 0 if (defined $$self{'INTERACTION'}{'DEBUG'})
1352 0 0 if (exists $$self{'LOCKED_CATEGORIES'}{$options{'CATEGORY'}})
1357 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}} and defined $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}}{'OVERRIDE'} and not exists $options{'OVERRIDE'})
1373 0 0 if ($$self{'CHECK_LOWER_LEVEL_CATEGORIES'} or $options{'CHECK_LOWER_LEVEL_CATEGORIES'})
1381 0 0 if ($warnings ne $EMPTY_STRING)
1407 0 0 unless exists $$self{'VALID_CATEGORIES'}{$$options{'CATEGORY'}}
1408 0 0 unless defined $$options{'NAME'}
1410 0 0 if (exists $$options{'VALUE'} and exists $$options{'EVAL'})
1415 0 0 unless (exists $$options{'VALUE'} or exists $$options{'EVAL'})
1420 0 0 if (exists $$options{'EVAL'})
1422 0 0 if (exists $$self{'EVALUATOR'}) { }
1432 0 0 if (exists $$options{'SET_VALIDATOR'}) { }
0 0 elsif (exists $$self{'SET_VALIDATOR'}) { }
1441 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$$options{'CATEGORY'}})
1473 0 0 if (not $crossed_protected_category and $$options{'OVERRIDE'}) { }
1475 0 0 if (exists $$self{'PROTECTED_CATEGORIES'}{$category}) { }
1483 0 0 if ($name_exists_in_category and $value_exists_in_category) { }
1485 0 0 unless (Compare($value_in_category, $$options{'VALUE'}))
1516 0 0 exists $$self{'PROTECTED_CATEGORIES'}{$category} ? :
1525 0 0 if ($name_exists_in_category and $value_exists_in_category)
1527 0 0 unless (Compare($value_in_category, $$options{'VALUE'}))
1532 0 0 if exists $$self{'PROTECTED_CATEGORIES'}{$category}
1551 0 0 if (exists $$self{'CATEGORIES'}{$category} and exists $$self{'CATEGORIES'}{$category}{$name})
1555 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$category}) { }
1560 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$category}{$name}{'OVERRIDDEN'})
1567 0 0 if (exists $$self{'CATEGORIES'}{$category}{$name}{'VALUE'})
1572 0 0 if (exists $$self{'CATEGORIES'}{$category}{$name}{'OVERRIDDEN'})
1602 0 0 if ($name_exists_in_category and $value_exists_in_category) { }
1604 0 0 if (not Compare($value_in_category, $value)) { }
1608 0 0 if $no_silent_override
1622 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$category}) { }
1652 0 0 if ($category eq $$options{'CATEGORY'}) { }
1667 0 0 if ($name_exists_in_category and not Compare($value_in_category, $$options{'VALUE'}))
1673 0 0 exists $$self{'PROTECTED_CATEGORIES'}{$category} ? :
1705 0 0 if (not $config_variable_exists) { }
1712 0 0 exists $$options{'HISTORY'} ? :
1713 0 0 exists $$options{'ATTRIBUTE'} ? :
1721 0 0 exists $$options{'ATTRIBUTE'} ? :
1723 0 0 if (exists $$options{'HISTORY'})
1730 0 0 if (exists $$config_variable{'OVERRIDDEN'})
1735 0 0 if (not Compare($$config_variable{'VALUE'}, $$options{'VALUE'})) { }
1739 0 0 if (not exists $$config_variable{'LOCKED'}) { }
1746 0 0 if ($$options{'FORCE_LOCK'}) { }
1764 0 0 if $$options{'OVERRIDE'}
1765 0 0 if $$options{'ATTRIBUTE'}
1769 0 0 $$options{'FORCE_LOCK'} ? :
1771 0 0 if (exists $$options{'LOCK'})
1773 0 0 if ($$options{'LOCK'}) { }
1787 0 0 exists $$options{'OVERRIDE'} ? :
1789 0 0 defined $$options{'VALUE'} ? :
1793 0 0 if exists $$options{'HISTORY'}
1794 0 0 if exists $$options{'COMMENT'}
1844 0 0 unless (defined $options{'FILE'})
1854 0 0 if (exists $options{'CATEGORY'}) { }
1856 0 0 if ($$self{'WARN_FOR_EXPLICIT_CATEGORY'})
1869 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
1870 0 0 unless defined $options{'NAME'}
1871 0 0 unless exists $options{'VALUE'}
1873 0 0 defined $options{'VALUE'} ? :
1875 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$options{'CATEGORY'}})
1881 0 0 if ($$self{'VERBOSE'})
1886 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}}) { }
1946 0 0 unless (defined $options{'FILE'})
1956 0 0 if (defined wantarray) { }
1958 0 0 unless (wantarray)
1968 0 0 if (exists $options{'CATEGORY'}) { }
1970 0 0 if ($$self{'WARN_FOR_EXPLICIT_CATEGORY'})
1983 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
1984 0 0 unless defined $options{'NAME'}
1985 0 0 if exists $options{'VALUE'}
1988 0 0 if ($$self{'VERBOSE'})
1995 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}}) { }
2000 0 0 if ($attribute_exist) { }
2029 0 0 if ($config_variable_exists)
2039 0 0 if ($$self{'VERBOSE'})
2044 0 0 unless (&$validator_sub($$options{'VALUE'}))
2052 0 0 if (exists $$options{'VALIDATORS'})
2057 0 0 if ($$self{'VERBOSE'})
2062 0 0 unless ($$options{'VALIDATORS'}{$validator}($$options{'VALUE'}))
2141 0 0 unless (defined $options{'FILE'})
2151 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'})
2153 0 0 if ($$self{'WARN_FOR_EXPLICIT_CATEGORY'})
2156 0 0 if @{$options{'CATEGORIES_TO_EXTRACT_FROM'};} > 1
2165 0 0 unless defined $options{'NAME'}
2168 0 0 if ($$self{'VERBOSE'})
2173 0 0 unless (defined wantarray)
2179 0 0 if (defined $$self{'INTERACTION'}{'DEBUG'})
2181 0 0 exists $options{'CATEGORY'} ? :
2195 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
2217 0 0 unless $name_exists_in_category
2227 0 0 if ($name_in_category_is_overriden) { }
2229 0 0 if (not $user_defined_categories_to_extract_from) { }
2243 0 0 if (exists $categories_to_extract_from{$$override{'CATEGORY'}})
2250 0 0 unless ($current_categories_contain_overriding_category)
2254 0 0 if ($$self{'VERBOSE'})
2266 0 0 if ($$self{'VERBOSE'})
2275 0 0 if ($$self{'LOG_ACCESS'})
2280 0 0 unless ($value_found)
2286 0 0 if ($$self{'DIE_NOT_EXISTS'} or $options{'DIE_NOT_EXISTS'}) { }
2292 0 0 unless ($options{'SILENT_NOT_EXISTS'} or $$self{'DISABLE_SILENT_OPTIONS'})
2299 0 0 if ($options{'GET_CATEGORY'}) { }
2325 0 0 unless exists $$self{'VALID_CATEGORIES'}{$category}
2329 0 0 if (@default_categories) { }
2382 0 0 if ('HASH' eq ref $options) { }
2384 0 0 unless (defined $$options{'FILE'})
2393 0 0 if defined $options
2402 0 0 unless ('ARRAY' eq ref $set)
2455 0 0 if ('HASH' eq ref $options) { }
2457 0 0 unless (defined $$options{'FILE'})
2466 0 0 if defined $options
2473 0 0 if (defined wantarray) { }
2475 0 0 unless (wantarray)
2488 0 0 unless ($EMPTY_STRING eq ref $name)
2539 0 0 if ($$self{'VERBOSE'})
2544 0 0 unless (defined wantarray)
2551 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
2632 0 0 if ($$self{'VERBOSE'})
2637 0 0 unless (defined wantarray)
2643 0 0 if (defined $$self{'INTERACTION'}{'DEBUG'})
2697 0 0 if ($$self{'VERBOSE'})
2702 0 0 if (defined wantarray) { }
2704 0 0 if (wantarray)
2716 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
2764 0 0 if ($$self{'VERBOSE'})
2802 0 0 if ($$self{'VERBOSE'})
2846 0 0 unless exists $$self{'VALID_CATEGORIES'}{$category}
2888 0 0 if (@options % 2)
2895 0 0 unless (defined $options{'FILE'})
2905 0 0 unless exists $options{'CATEGORY'}
2909 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
2910 0 0 unless defined $options{'NAME'}
2912 0 0 if ($$self{'VERBOSE'})
2917 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}}) { }
3004 0 0 if (@options % 2)
3011 0 0 unless (defined $options{'FILE'})
3021 0 0 unless exists $options{'CATEGORY'}
3025 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
3026 0 0 unless defined $options{'NAME'}
3028 0 0 if ($$self{'VERBOSE'})
3033 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}})
3078 0 0 unless defined $category
3079 0 0 unless exists $$self{'VALID_CATEGORIES'}{$category}
3081 0 0 if (exists $$self{'LOCKED_CATEGORIES'}{$category}) { }
3122 0 0 if (@options % 2)
3129 0 0 unless (defined $options{'FILE'})
3139 0 0 unless exists $options{'CATEGORY'}
3143 0 0 unless exists $$self{'VALID_CATEGORIES'}{$options{'CATEGORY'}}
3144 0 0 unless defined $options{'NAME'}
3146 0 0 if ($$self{'VERBOSE'})
3153 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}})
3155 0 0 if (exists $$self{'CATEGORIES'}{$options{'CATEGORY'}}{$options{'NAME'}}{'LOCKED'}) { }
3197 0 0 if (@options % 2)
3204 0 0 unless (defined $options{'FILE'})
3216 0 0 unless defined $options{'NAME'}
3217 0 0 if exists $options{'CATEGORY'}
3219 0 0 if ($$self{'VERBOSE'})
3226 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
3228 0 0 if (defined $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
3246 0 0 unless exists $$self{'VALID_CATEGORIES'}{$category}
3248 0 0 if (exists $$self{'CATEGORIES'}{$category}{$options{'NAME'}})
3462 0 0 if (@options % 2)
3469 0 0 unless (defined $options{'FILE'})
3481 0 0 unless defined $options{'NAME'}
3482 0 0 if exists $options{'CATEGORY'}
3487 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
3489 0 0 if (defined $options{'CATEGORIES_TO_EXTRACT_FROM'}) { }
3505 0 0 unless exists $$self{'VALID_CATEGORIES'}{$category}
3528 0 0 if (exists $$self{'ALIASED_CATEGORIES'}{$category}) { }
3533 0 0 if (@{$aliased_history;}) { }
3548 0 0 if (exists $$self{'CATEGORIES'}{$category}{$name}) { }
3591 0 0 if (@options % 2)
3600 0 0 unless (defined $options{'FILE'})
3610 0 0 unless defined $options{'NAME'}
3616 0 0 if (exists $options{'CATEGORIES_TO_EXTRACT_FROM'})
3622 0 0 if (exists $options{'DATA_TREEDUMPER_OPTIONS'})
3684 0 0 if (exists $$self{'ACCESS_TO_VARIABLE'}) { }