NoOp/Scope.pm

filter: Statementstmt 75.0% 9 / 12 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 56.5% 13 / 23 CC 2 SCAR 5.4
CC
2
Cov
71%
BEGIN
2.0
new
2.0
close
2.0
CRAP 1.7
« NoOp/ContextReference.pm ↑ Summary NoOp/ScopeManager.pm »
1 package OpenTracing::Implementation::NoOp::Scope;
2  
3 =head1 NAME
4  
5 OpenTracing::Implementation::NoOp::Scope - 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::Scope>,
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 4 our $VERSION = 'v0.72.1';
19  
20  
21  
22 4 ▶use OpenTracing::Implementation::NoOp::Span;
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 close { shift }
Subroutine close: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 0 ▶sub get_span {
Subroutine get_span: not called CC=1 SCAR=6.9
Pod undocumented
33 0 OpenTracing::Implementation::NoOp::Span->new( )
34 }
35  
36  
37  
38 4 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=7.0
39 4 ▶ use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 with 'OpenTracing::Interface::Scope'
41 4 ▶ if $ENV{OPENTRACING_INTERFACE};
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"OPENTRACING_INTERFACE"} 0 4 4
42 } # check at compile time, perl -c will work
43  
44  
45  
46 4 1;
« NoOp/ContextReference.pm ↑ Summary NoOp/ScopeManager.pm »