Branch Coverage

lib/Dancer/Plugin/Interchange6/Routes.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
244 0 1 if (config()->{'template'} eq 'template_flute')
260 1 0 if ($routes_config->{'cart'}{'active'})
267 1 0 if ($routes_config->{'checkout'}{'active'})
281 15 7 unless ($product)
286 3 12 if ($product and $product->uri)
296 8 11 if ($product)
315 1 10 if ($path =~ s[/([1-9][0-9]*)$][]) { }
325 6 5 if (defined $nav)
332 5 1 if (my $attr_value = $nav->find_attribute_value('template'))
356 6 0 if (defined $routes_config->{'navigation'}{'records'})
372 6 0 unless ($object_autodetect)
386 2 3 if ($redirect)
403 2 3 unless (ref $defaults)
408 4 6 if (exists $settings->{$key}) { }
423 0 1 if ($settings->{'navigation'}{'records'} == 0)