File Coverage

blib/lib/OpenTracing/Interface/ContextReference.pm
Criterion Covered Total %
statement 59 59 100.0
branch 14 28 50.0
condition n/a
subroutine 11 11 100.0
pod n/a
total 84 98 85.7


line stmt bran cond sub pod time code
1             package OpenTracing::Interface::ContextReference;
2              
3              
4 3     3   556616 use strict;
  3         33  
  3         91  
5 3     3   17 use warnings;
  3         5  
  3         126  
6              
7              
8             our $VERSION = 'v0.206.1';
9              
10              
11 5     3   1453 use Role::Declare::Should;
  3         10301  
  3         19  
12              
13 3     3   522099 use OpenTracing::Types qw/ContextReference SpanContext/;
  3         3914  
  3         32  
14 3     3   1959 use Types::Standard qw/Bool/;
  3         9  
  3         19  
15              
16 3     3   2275 use namespace::clean;
  3         8  
  3         33  
17              
18             class_method new_child_of(
19             SpanContext $span_context
20 3 50   3   1456 ) :Return(ContextReference) {}
  3 50       7  
  4 50       50  
  1 50       1403  
  1         4  
  1         3  
  1         3  
  1         4  
  3         2874  
  3         8  
21              
22              
23              
24             class_method new_follows_from(
25             SpanContext $span_context
26 3 50   3   13 ) :Return(ContextReference) {}
  1 50       12068  
  1 50       4  
  1 50       3  
  1         3  
  1         4  
  1         18  
  1         28  
  3         2207  
  3         8  
27              
28              
29              
30             instance_method get_referenced_context(
31 3 50   3   12 ) :Return(SpanContext) {}
  1 50       4647  
  1 50       5  
  1         2  
  1         4  
  3         2293  
  3         7  
  3         16  
32              
33              
34              
35             instance_method type_is_child_of(
36 1 50   3   4636 ) :Return(Bool) {}
  1 50       4  
  1 50       3  
  1         4  
  1         27  
  3         2257  
  3         7  
  3         13  
37              
38              
39              
40             instance_method type_is_follows_from(
41 1     3   4803 ) :Return(Bool) {}
  1         4  
  1         2  
  1         5  
  1         28  
42              
43              
44              
45             1;