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 CC 2 SCAR 3.6
CC
2
Cov
80%
BEGIN
2.0
bootstrap_tracer
2.0
BEGIN
1.0
CRAP 1.4
« NoOp/Tracer.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.1';
7  
8  
9  
10 1 ▶use aliased 'OpenTracing::Implementation::NoOp::Tracer';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13  
14 0 ▶sub bootstrap_tracer {
Subroutine bootstrap_tracer: not called CC=1 SCAR=6.9
Pod documented
15 0 my $implementation_class = shift;
16
17 0 my @implementation_args = @_;
18
19 0 return Tracer->new( @implementation_args );
20 }
21  
22  
23  
24 1 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=7.0
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
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"OPENTRACING_INTERFACE"} 0 1 1
29  
30  
31  
32 1 1;
« NoOp/Tracer.pm ↑ Summary