| blib/lib/Dancer2/Plugin/Menu.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 20 | 95.0 |
| line | true | false | branch |
|---|---|---|---|
| 33 | 1 | 3 | if (my $html = $s->get_html_cache($route)) |
| 72 | 6 | 13 | unless (@nodes) |
| 78 | 13 | 6 | if (@nodes) { } |
| 4 | 2 | elsif (not $tree->{$node}{'children'}) { } | |
| 79 | 4 | 9 | unless ($tree->{$node}{'children'}) |
| 90 | 12 | 3 | unless ($tree->{$node}{'protected'}) |
| 92 | 2 | 10 | unless (@nodes) |
| 111 | 0 | 3 | unless $tree->{'children'}{$a}{'weight'} <=> $tree->{'children'}{$b}{'weight'} |
| 115 | 7 | 8 | $tree->{'children'}{$child}{'active'} ? : |
| 119 | 8 | 7 | if ($tree->{'children'}{$child}{'children'}) { } |