lib/Badger/Log.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 23 | 26 | 88.4 |
line | true | false | branch |
---|---|---|---|
61 | 25 | 16 | unless @_ |
63 | 13 | 3 | if $self->{$level} |
68 | 0 | 2 | unless @_ |
70 | 1 | 1 | if $self->{$level} |
88 | 8 | 37 | defined $config->{$level} ? : |
104 | 0 | 11 | unless defined $action |
111 | 3 | 8 | if (ref $action eq 'ARRAY') { } |
3 | 5 | elsif (ref $action eq 'CODE') { } | |
1 | 4 | elsif (&blessed($action) and $method = $action->can('log')) { } | |
4 | 0 | elsif ($action) { } | |
137 | 19 | 1 | defined $args->{$1} ? : |
147 | 1 | 8 | unless exists $Badger::Log::LEVELS->{$level} |
148 | 6 | 2 | @_ ? : |