| 1 | package OpenTracing::Implementation::NoOp::ContextReference; | ||||||||||
| 2 | |||||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | OpenTracing::Implementation::NoOp::ContextReference - NoOp, so code won't break! | ||||||||||
| 6 | |||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||
| 8 | |||||||||||
| 9 | Objects of this class implement the required methods of the | ||||||||||
| 10 | L<OpenTracing::Interface::ContextReference>, | ||||||||||
| 11 | to be compliant during testing and allow applications to continue working | ||||||||||
| 12 | without having to catch exceptions all the time. | ||||||||||
| 13 | |||||||||||
| 14 | None of the methods will do anything useful. | ||||||||||
| 15 | |||||||||||
| 16 | =cut | ||||||||||
| 17 | |||||||||||
| 18 | 2 | our $VERSION = 'v0.72.1'; | |||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 2 | ▶ | use OpenTracing::Implementation::NoOp::SpanContext; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub new { bless {} } | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 27 | 0 | ▶ | sub new_child_of { bless {} } | ||||||||
|
Subroutine
new_child_of: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 28 | 0 | ▶ | sub new_follows_from { bless {} } | ||||||||
|
Subroutine
new_follows_from: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub type_is_child_of { undef } | ||||||||
|
Subroutine
type_is_child_of: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | 0 | ▶ | sub type_is_follows_from { undef } | ||||||||
|
Subroutine
type_is_follows_from: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | ▶ | sub get_referenced_context { | ||||||||
|
Subroutine
get_referenced_context: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 34 | 0 | OpenTracing::Implementation::NoOp::SpanContext->new(); | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.0
| |||||||||||
| 41 | 2 | ▶ | use Role::Tiny::With; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 42 | with 'OpenTracing::Interface::ContextReference' | ||||||||||
| 43 | 2 | ▶ | if $ENV{OPENTRACING_INTERFACE}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | } # check at compile time, perl -c will work | ||||||||||
| 45 | |||||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | 2 | 1; | |||||||||