Condition Coverage

blib/lib/AWS/XRay/Plugin/EC2.pm
Criterion Covered Total %
condition 1 3 33.3


or 3 conditions

line l !l&&r !l&&!r condition
17 0 1 0 $METADATA ||= do { my $ua = 'HTTP::Tiny'->new('timeout', 1); my $instance_id = do { my $res = $ua->get('http://169.254.169.254/latest/meta-data/instance-id'); $res->{'success'} ? $res->{'content'} : '' }; my $az = do { my $res = $ua->get('http://169.254.169.254/latest/meta-data/placement/availability-zone'); $res->{'success'} ? $res->{'content'} : '' }; +{'instance_id', $instance_id, 'availability_zone', $az} }