Branch Coverage

blib/lib/AWS/XRay.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
45 14 0 if (@_)
53 4 0 if (@_)
61 2 0 if (@_)
70 0 0 if (@_)
72 0 0 if ($auto_flush != $AUTO_FLUSH)
73 0 0 if $Sock and $Sock->can('close')
113 2 4435 unless (is_valid_name($name))
115 1 1 $CROAK_INVALID_NAME ? :
121 2413 2023 if (defined $ENABLED) { }
0 2023 elsif ($TRACE_ID) { }
122 1213 1200 $ENABLED ? :
129 1011 1012 &$SAMPLER() ? :
130 1011 1012 $sampled ? :
135 2212 2224 unless $enabled
140 1512 712 unless (defined $segment->{'type'} and $segment->{'type'} eq 'subsegment')
148 1 2223 if ($wantarray) { }
4 2219 elsif (defined $wantarray) { }
159 0 2224 if ($error)
174 0 2224 if ($@)
177 0 2224 if $error
178 1 2223 $wantarray ? :
192 1001 3 unless my $header = shift()
195 3 0 if ($header =~ /Root=([0-9a-fA-F-]+)/u)
198 3 0 if ($header =~ /Parent=([0-9a-fA-F]+)/u)
201 3 0 if ($header =~ /Sampled=([^;]+)/u)
212 0 3 unless my $orig = $package->can($method)