Branch Coverage

blib/lib/Dancer2/ConfigReader.pm
Criterion Covered Total %
branch 36 54 66.6


line true false branch
223 0 102 if builtin::blessed($thing)
225 102 0 unless ref $thing
227 0 102 if keys %$thing != 1
240 1 372 if $nbr_config++ >= $MAX_CONFIGS
251 0 372 if $ENV{'DANCER_CONFIG_VERBOSE'}
254 101 269 if (my $additionals = delete $local_config->{'additional_config_readers'})
256 0 101 if $ENV{'DANCER_CONFIG_VERBOSE'}
258 1 100 is_arrayref($additionals) ? :
286 5 263 $ENV{'DANCER_CONFIG_READERS'} ? :
289 0 268 if $ENV{'DANCER_CONFIG_VERBOSE'}
303 265 2 if exists $config->{'strict_config'} and not $config->{'strict_config'}
306 1 1 if (exists $config->{'strict_config_allow'})
308 1 0 if (is_arrayref($allow)) { }
319 7 2 $KNOWN_CORE_KEYS{$_} || $allowed_keys{$_} ? :
321 2 0 if (my $engines = $config->{'engines'})
325 0 2 unless @warnings
336 0 2 unless is_hashref($engines)
343 0 4 unless is_hashref($type_config)
346 0 4 unless my $known_type = $KNOWN_ENGINE_CONFIG{$engine_type}
354 0 4 unless is_hashref($engine_config)
358 0 4 unless defined $normalized
361 0 4 unless my $known_engine = $known_engines->{$normalized}
362 2 2 if $known_engine->{'allow_any'}
364 0 2 unless $known_engine->{'keys'}
367 2 2 if $allowed{$key}
380 0 4 unless defined $name
381 0 4 if $name =~ /::/msx