Branch Coverage

blib/lib/Dancer2/Plugin/Interchange6/Routes.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
358 1 1 if ($plugin->cart_active)
373 1 1 if ($plugin->checkout_active)
403 15 7 unless ($product)
409 3 12 if ($product and $product->uri)
421 8 11 if ($product)
441 1 10 if ($path =~ s[/([1-9][0-9]*)$][]) { }
452 6 5 if (defined $nav)
459 5 1 if (my $attr_value = $nav->find_attribute_value('template'))
483 6 0 if (defined $plugin->navigation_records)
498 6 0 unless ($plugin->object_autodetect)
513 2 3 if ($redirect)
534 1 1 if ($plugin->navigation_records == 0)