line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::OpenTracing::Integration; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = 'v0.104.0'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
129437
|
use strict; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
61
|
|
6
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
52
|
|
7
|
2
|
|
|
2
|
|
460
|
use parent 'Exporter'; |
|
2
|
|
|
|
|
283
|
|
|
2
|
|
|
|
|
11
|
|
8
|
2
|
|
|
2
|
|
175
|
use Carp qw/croak/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
99
|
|
9
|
2
|
|
|
2
|
|
14
|
use Test::Builder; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
53
|
|
10
|
2
|
|
|
2
|
|
10
|
use Test::Deep qw/bag superhashof cmp_details deep_diag/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
20
|
|
11
|
2
|
|
|
2
|
|
1276
|
use OpenTracing::GlobalTracer; |
|
2
|
|
|
|
|
6127
|
|
|
2
|
|
|
|
|
14
|
|
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 global_tracer_cmp_spans { |
37
|
0
|
|
|
0
|
1
|
0
|
my $tracer = OpenTracing::GlobalTracer->get_global_tracer; |
38
|
0
|
0
|
|
|
|
0
|
my $next = $tracer->can('cmp_spans') |
39
|
|
|
|
|
|
|
or croak 'Not a test implementation'; |
40
|
0
|
|
|
|
|
0
|
unshift @_, $tracer; |
41
|
0
|
|
|
|
|
0
|
goto $next; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub reset_spans { |
46
|
3
|
|
|
3
|
1
|
10399
|
my $tracer = OpenTracing::GlobalTracer->get_global_tracer; |
47
|
3
|
50
|
|
|
|
35
|
croak 'Not a test implementation' if !$tracer->can('clear_spans'); |
48
|
3
|
|
|
|
|
85
|
return $tracer->clear_spans(); |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |