Branch Coverage

blib/lib/OpenTelemetry/Propagator/TraceContext/TraceParent.pm
Criterion Covered Total %
branch 10 10 100.0


line true false branch
40 2 8 if not $version && $version =~ /^\d+$/a or $version > 0 and length $string < 55
47 1 7 unless my($trace_id, $span_id, $trace_flags) = $string =~ / ^ [A-Za-z0-9]{2} # version - ([A-Za-z0-9]{32}) # trace ID - ([A-Za-z0-9]{16}) # span ID - ([A-Za-z0-9]{2}) # trace flags ( $ | - ) /x
58 1 6 if $version == 0 and length $string > 55
63 1 5 if $trace_id eq "00000000000000000000000000000000"
68 1 4 if $span_id eq "0000000000000000"