Branch Coverage

blib/lib/OpenTelemetry/TraceContext/W3C.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
48 1 8 unless ($value =~ /$match_traceparent_v0/)
54 2 6 if ($version == 255 or $version == 0 and $next_char ne "")
57 2 4 if ($trace_id eq $invalid_trace_id or $parent_id eq $invalid_parent_id)
73 1 5 if (not $trace_id or length $trace_id != 32 or $trace_id eq $invalid_trace_id)
76 1 4 if (not $parent_id or length $parent_id != 16 or $parent_id eq $invalid_parent_id)
91 0 7 if $#parts > 31
96 3 12 unless $list_member
106 3 4 $options ? :
109 3 4 if (length $formatted > $max_length)
114 5 1 if $chopping_list[$i][0] < 129
134 0 3 unless $list_member
137 1 2 if ($parsed->{'list_members'}[$i]{'key'} eq $list_member->{'key'})
144 0 3 if $#{$$parsed{"list_members"};} > 31
152 3 15 unless ($formatted_string =~ /$match_tracestate_listmember_v0/)
158 1 14 !$simple_key ? :
14 1 !$tenant_id ? :