blib/lib/Dancer2/Plugin/Menu.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
38 | 1 | 1 | $s->has_clean_tree ? : |
75 | 4 | 10 | if (not @segments and $s->tree->{$segment} || !$tree->{$segment}{'children'}) { } |
4 | 6 | elsif (not $s->tree->{$segment} || $tree->{$segment}{'children'}) { } | |
83 | 6 | 8 | unless ($tree->{$segment}{'protected'}) |
84 | 0 | 6 | unless @segments |
101 | 0 | 0 | unless $tree->{'children'}{$a}{'weight'} <=> $tree->{'children'}{$b}{'weight'} |
105 | 6 | 6 | $tree->{'children'}{$child}{'active'} ? : |
109 | 8 | 4 | if ($tree->{'children'}{$child}{'children'}) { } |