Branch Coverage

blib/lib/AWS/XRay.pm
Criterion Covered Total %
branch 31 48 64.5


line true false branch
41 14 0 if (@_)
49 4 0 if (@_)
57 1 0 if (@_)
66 0 0 if (@_)
68 0 0 if ($auto_flush != $AUTO_FLUSH)
69 0 0 if $Sock and $Sock->can('close')
109 2412 2021 if (defined $ENABLED) { }
0 2021 elsif ($TRACE_ID) { }
110 1212 1200 $ENABLED ? :
115 1009 1012 &$SAMPLER() ? :
116 1009 1012 $sampled ? :
121 2212 2221 unless $enabled
126 1510 711 unless (defined $segment->{'type'} and $segment->{'type'} eq 'subsegment')
134 1 2220 if ($wantarray) { }
3 2217 elsif (defined $wantarray) { }
145 0 2221 if ($error)
160 0 2221 if ($@)
163 0 2221 if $error
164 1 2220 $wantarray ? :
178 1001 3 unless my $header = shift()
181 3 0 if ($header =~ /Root=([0-9a-fA-F-]+)/u)
184 3 0 if ($header =~ /Parent=([0-9a-fA-F]+)/u)
187 3 0 if ($header =~ /Sampled=([^;]+)/u)
198 0 2 unless my $orig = $package->can($method)