line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::OpenTracing::Integration; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = 'v0.103.1'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
132072
|
use strict; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
60
|
|
6
|
2
|
|
|
2
|
|
20
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
54
|
|
7
|
2
|
|
|
2
|
|
454
|
use parent 'Exporter'; |
|
2
|
|
|
|
|
302
|
|
|
2
|
|
|
|
|
24
|
|
8
|
2
|
|
|
2
|
|
169
|
use Carp qw/croak/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
9
|
2
|
|
|
2
|
|
22
|
use Test::Builder; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
64
|
|
10
|
2
|
|
|
2
|
|
22
|
use Test::Deep qw/bag superhashof cmp_details deep_diag/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
16
|
|
11
|
2
|
|
|
2
|
|
1356
|
use OpenTracing::GlobalTracer; |
|
2
|
|
|
|
|
6111
|
|
|
2
|
|
|
|
|
12
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our @EXPORT = qw( |
14
|
|
|
|
|
|
|
reset_spans |
15
|
|
|
|
|
|
|
global_tracer_cmp_easy |
16
|
|
|
|
|
|
|
global_tracer_cmp_deeply |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub global_tracer_cmp_easy { |
20
|
0
|
|
|
0
|
1
|
0
|
my $tracer = OpenTracing::GlobalTracer->get_global_tracer; |
21
|
0
|
0
|
|
|
|
0
|
my $next = $tracer->can('cmp_easy') |
22
|
|
|
|
|
|
|
or croak 'Not a test implementation'; |
23
|
0
|
|
|
|
|
0
|
unshift @_, $tracer; |
24
|
0
|
|
|
|
|
0
|
goto $next; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub global_tracer_cmp_deeply { |
28
|
0
|
|
|
0
|
1
|
0
|
my $tracer = OpenTracing::GlobalTracer->get_global_tracer; |
29
|
0
|
0
|
|
|
|
0
|
my $next = $tracer->can('cmp_deeply') |
30
|
|
|
|
|
|
|
or croak 'Not a test implementation'; |
31
|
0
|
|
|
|
|
0
|
unshift @_, $tracer; |
32
|
0
|
|
|
|
|
0
|
goto $next; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub reset_spans { |
37
|
3
|
|
|
3
|
1
|
9452
|
my $tracer = OpenTracing::GlobalTracer->get_global_tracer; |
38
|
3
|
50
|
|
|
|
66
|
croak 'Not a test implementation' if !$tracer->can('clear_spans'); |
39
|
3
|
|
|
|
|
82
|
return $tracer->clear_spans(); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |