blib/lib/Bot/Cobalt/Logger/Output.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 14 | 57.1 |
line | true | false | branch |
---|---|---|---|
35 | 2 | 2 | unless (@args and @args % 2 == 0) |
43 | 0 | 3 | unless ref $opts eq 'HASH' |
47 | 0 | 3 | unless $opts->{'type'} |
54 | 0 | 3 | if (my $err = $@) |
65 | 0 | 3 | unless my $new_obj = &try(sub { $target_pkg->new(%$opts); } , &catch(sub { carp("Could not add logger $alias; new() died: $_"); undef; } )) |
78 | 2 | 0 | if delete $self->_outputs->{$alias} |
114 | 0 | 6 | $output->can('_format') ? : |