lib/Badger/Log.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 23 | 26 | 88.4 |
line | true | false | branch |
---|---|---|---|
61 | 25 | 20 | unless @_ |
63 | 17 | 3 | if $self->{$level} |
68 | 0 | 3 | unless @_ |
70 | 1 | 2 | if $self->{$level} |
88 | 8 | 42 | 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 | 27 | 1 | defined $args->{$1} ? : |
147 | 1 | 8 | unless exists $Badger::Log::LEVELS->{$level} |
148 | 6 | 2 | @_ ? : |