NoOp.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 81.4% 22 / 27 SCAR 7.1
CC
2
Cov
80%
BEGIN
2.1
bootstrap_tracer
2.0
BEGIN
1.0
CRAP 2.0
« NoOp/ScopeManager.pm ↑ Summary
1 package OpenTracing::Implementation::NoOp;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = 'v0.72.0';
7  
8  
9  
10 1 ▶use aliased 'OpenTracing::Implementation::NoOp::Tracer';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13  
14 sub bootstrap_tracer {
15 0 ▶ my $implementation_class = shift;
Subroutine bootstrap_tracer: not called CC=1 SCAR=6.9
Pod documented
16
17 0 my @implementation_args = @_;
18
19 0 return Tracer->new( @implementation_args );
20 }
21  
22  
23  
24 BEGIN {
25 1 ▶ use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 with 'OpenTracing::Implementation::Interface::Bootstrap'
27 if $ENV{OPENTRACING_INTERFACE}
28 1 ▶} # check at compile time, perl -c will work
Subroutine BEGIN: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"OPENTRACING_INTERFACE"} 0 1 1
29  
30  
31  
32 1 1;
« NoOp/ScopeManager.pm ↑ Summary