Branch Coverage

blib/lib/Test/Proto/Formatter/TestBuilder.pm
Criterion Covered Total %
branch 26 32 81.2


line true false branch
43 0 66 unless defined $v
44 33 33 unless ref $v
45 20 13 if ref $v eq 'ARRAY'
46 0 13 if ref $v eq 'HASH'
53 106 4 if (ref $test_case) { }
54 66 40 if ($test_case->isa('Test::Proto::TestCase'))
57 66 0 if defined $test_case->data->{'expected'}
58 9 57 if (scalar keys %{$test_case->data;} > 1)
77 110 110 if ('new' eq $eventType) { }
110 0 elsif ('done' eq $eventType) { }
78 66 40 $runner->test_case->can('name') ? :
106 4 defined $runner->test_case ? :
84 107 3 if (defined $runner->parent) { }
92 110 0 if (my $tb = $self->_object_id_register->{$runner->object_id}) { }
93 109 1 defined $runner->subject ? :
110 0 defined $runner->status_message ? :