| 1 | package OpenTracing::Implementation::NoOp::ScopeManager; | ||||||||||
| 2 | |||||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | OpenTracing::Implementation::NoOp::ScopeManager - 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::ScopeManager>, | ||||||||||
| 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 | 3 | our $VERSION = 'v0.72.1'; | |||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 3 | ▶ | use OpenTracing::Implementation::NoOp::Scope; | ||||||||
|
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 | |||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub activate_span { | ||||||||
|
Subroutine
activate_span: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | 0 | OpenTracing::Implementation::NoOp::Scope->new( ) | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | sub get_active_scope { return } | ||||||||
|
Subroutine
get_active_scope: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | 3 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.0
| |||||||||||
| 39 | 3 | ▶ | use Role::Tiny::With; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 40 | with 'OpenTracing::Interface::ScopeManager' | ||||||||||
| 41 | 3 | ▶ | if $ENV{OPENTRACING_INTERFACE}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | } # check at compile time, perl -c will work | ||||||||||
| 43 | |||||||||||
| 44 | |||||||||||
| 45 | |||||||||||
| 46 | 3 | 1; | |||||||||