blib/lib/App/CmdDispatch.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 13 | 61.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
20 | 0 | 1 | 41 | $options and ref $options eq ref {} |
27 | 41 | 0 | 0 | $self->{'config'}{'command_sort'} and 'CODE' eq ref $self->{'config'}{'command_sort'} |
line | l | !l | condition |
---|---|---|---|
17 | 38 | 7 | $options ||= {} |
47 | 22 | 15 | $self->{'_command_sorter'} ||= sub { return sort(@_); } |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
43 | 0 | 22 | 0 | $self->{'_command_sorter'} ||= ref($self->{'_helper'})->can('sort_commands') |