File Coverage

blib/lib/OpenTracing/Interface/SpanContext.pm
Criterion Covered Total %
statement 50 55 90.9
branch 10 26 38.4
condition 1 3 33.3
subroutine 10 10 100.0
pod n/a
total 71 94 75.5


line stmt bran cond sub pod time code
1             package OpenTracing::Interface::SpanContext;
2              
3              
4 3     3   568248 use strict;
  3         37  
  3         93  
5 3     3   17 use warnings;
  3         6  
  5         223  
6              
7              
8             our $VERSION = 'v0.206.1';
9              
10              
11 3     3   1218 use Role::Declare::Should;
  3         10087  
  3         21  
12              
13 3     3   506756 use OpenTracing::Types qw/SpanContext/;
  3         3763  
  3         32  
14 3     3   1569 use Types::Standard qw/Any HashRef Str Value/;
  3         8  
  3         19  
15              
16 3     3   3395 use namespace::clean;
  3         6  
  3         31  
17              
18              
19             instance_method get_baggage_item(
20             Str $key
21 3 50   3   1572 ) :ReturnMaybe(Value) {}
  3 50       8  
  3 0       20  
  1 0       1656  
  1         4  
  1         3  
  1         3  
  1         6  
  3         4577  
  3         9  
22              
23              
24              
25             instance_method get_baggage_items(
26 3 0   3   12 ) :ReturnList (Any) {}
  0 50       0  
  0 50       0  
  0         0  
  0         0  
  0         0  
  3         9079  
  3         9  
27              
28              
29              
30             instance_method with_baggage_item(
31             Str $key,
32             Str $value
33 3 50   3   16 ) :Return(SpanContext) {}
  1 50       12768  
  1 50       5  
  1 50       2  
  1 50       4  
  1         4  
  1         13  
  1         8  
  1         37  
  3         2614  
  3         7  
34              
35              
36              
37             instance_method with_baggage_items(
38             %key_values,
39 1 50 33     3 ) :Return(SpanContext) {
  1         5  
  1         5  
  1         9  
  1         6  
40             ( HashRef[Str] )->assert_valid( {%key_values} )
41 3     3   14 }
  1         5171  
  1         9  
42              
43              
44              
45             1;