Branch Coverage

lib/Log/Shiras/Switchboard.pm
Criterion Covered Total %
branch 76 106 71.7


line true false branch
106 10 5 if $instance->_has_import_recursion_block
108 0 5 if @args and 0
111 0 5 if ($args[0] and $args[0] =~ /^v?\d+\.?\d*/)
115 0 0 if ($result < 0)
121 0 5 if (@args)
127 1 4 if ($Log::Shiras::Unhide::strip_match)
139 0 13 if ($maybe_class ne 'Log::Shiras::Switchboard')
144 0 0 is_YamlFile($args[0]) || is_JsonFile($args[0]) ? :
7 0 @args > 1 && scalar(@args) % 2 == 0 ? :
6 7 !@args ? :
154 0 7 if ($arguments and exists $arguments->{'conf_file'})
165 7 6 if (keys %$arguments)
178 14 0 is_HashRef($arguments->{$key}) ? :
185 12 2 if ($instance->can($method_1)) { }
216 45 2727 if ($recursion == 0) { }
380 2347 elsif ($recursion == 1) { }
229 61 364 if ($self->_can_communicate($data_ref->{'report'}, $data_ref->{'level'}, $data_ref->{'name_space'})) { }
260 57 4 $y eq 'report' ? :
308 7 2 scalar @args == 1 ? :
322 5 2 if (is_ReportObject($report)) { }
354 1 1 if ($self->has_log_levels($report)) { }
380 6 0 if ($self->has_buffer($report)) { }
409 1 0 if ($self->has_buffer($report)) { }
433 0 2 if ($self->has_buffer($report)) { }
515 350 75 if ($self->_has_can_com_cash($cash_string)) { }
522 30 45 unless keys %$source_space
537 129 24 if (exists $source_space->{$next_level}) { }
561 32 25 if ($key =~ /$report/i)
573 17 15 if ($attempted >= $allowed) { }
593 47 14 unless (exists $data_ref->{'source_sub'})
607 61 6 if ($caller_ref->{'subroutine'} eq $data_ref->{'source_sub'})
614 0 67 if $level > 6
636 1 60 if ($data_ref->{'carp_stack'})
657 4 57 if ($self->has_buffer($report_ref->{'report'}))
678 9 51 unless ($self->_has_test_buffer($report_ref->{'report'}))
709 60 0 if ($Log::Shiras::Test2::last_buffer_position)
719 54 6 if ($report_array_ref) { }
721 0 42 unless $report
747 2 52 if ($data_ref->{'level'} =~ /fatal/i)
754 1 1 if (not $data_ref->{'message'}) { }
759 1 0 if (not $element or length $element == 0) { }
0 0 elsif ($i) { }
761 0 0 ref $element ? :
764 0 0 ref $element ? :
768 0 1 length $fatality > 0 ? :
781 48 126 if (exists $space_ref->{'UNBLOCK'})
792 0 174 if (exists $space_ref->{'BLOCK'})
815 25 39 if (is_ElevenInt($level)) { }
821 0 39 $self->has_log_levels($report) ? :
0 39 !$report ? :
824 0 39 if (not $level_ref) { }
836 39 137 if ($word and $level =~ /^$word$/i)
845 0 39 unless ($found)