Branch Coverage

blib/lib/Test2/Util/Facets2Legacy.pm
Criterion Covered Total %
branch 51 56 91.0


line true false branch
29 26 35 if (&blessed($in) and $in->isa('Test2::Event'))
30 1 25 if $CYCLE_DETECT
37 34 1 if ref $in eq 'HASH'
45 1 6 if $facet_data->{'errors'} and grep {$_->{'fail'};} @{$$facet_data{'errors'};}
47 3 3 if (my $control = $facet_data->{'control'})
48 1 2 if $control->{'halt'}
49 1 1 if $control->{'terminate'}
52 1 3 if $facet_data->{'amnesty'} and @{$facet_data->{'amnesty'};}
53 1 2 if $facet_data->{'assert'} and not $facet_data->{'assert'}{'pass'}
59 1 3 if $facet_data->{'errors'} and @{$facet_data->{'errors'};}
60 1 2 unless $facet_data->{'info'} and @{$facet_data->{'info'};}
61 1 1 grep({$_->{'debug'};} @{$$facet_data{'info'};}) ? :
66 1 14 unless $facet_data->{'control'}
72 1 1 $facet_data->{'assert'} ? :
77 1 2 unless $facet_data->{'about'}
83 1 5 unless my $plan = $facet_data->{'plan'}
86 2 3 if ($plan->{'skip'}) { }
1 2 elsif ($plan->{'none'}) { }
88 1 1 if defined $plan->{'details'}
99 1 1 unless $facet_data->{'parent'}
105 1 1 unless $facet_data->{'about'} and $facet_data->{'about'}{'details'}
111 6 3 unless $facet_data->{'control'}
118 8 6 if ($CYCLE_DETECT)
119 8 0 if (&blessed($in) and $in->isa('Test2::Event'))
121 8 0 if $meth == \&Test2::Util::Facets2Legacy::uuid
122 0 8 if $meth and $meth != \&Test2::Util::Facets2Legacy::uuid
123 0 8 if $uuid
130 0 6 if $facet_data->{'about'} and $facet_data->{'about'}{'uuid'}